mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
RichText fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@10087 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b3756e1abc
commit
08b434eb9d
1 changed files with 2 additions and 6 deletions
|
|
@ -40,15 +40,11 @@ void RichTxt::Sync0(const Para& pp, int parti, const RichContext& rc) const
|
|||
pp.newhdrftr = p.format.newhdrftr;
|
||||
if(~pp.header_qtf != ~p.format.header_qtf) { // we compare just pointers
|
||||
pp.header_qtf = p.format.header_qtf;
|
||||
pp.header.Clear();
|
||||
if(pp.header_qtf.GetCount())
|
||||
pp.header.Create() = ParseQTF(pp.header_qtf);
|
||||
Upp::SetQTF(pp.header, pp.header_qtf);
|
||||
}
|
||||
if(~pp.footer_qtf != ~p.format.footer_qtf) { // we compare just pointers
|
||||
pp.footer_qtf = p.format.footer_qtf;
|
||||
pp.footer.Clear();
|
||||
if(pp.footer_qtf.GetCount())
|
||||
pp.footer.Create() = ParseQTF(pp.footer_qtf);
|
||||
Upp::SetQTF(pp.footer, pp.footer_qtf);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue