From 08b434eb9d08fcb84bc0f87e27ae47b600fafaf6 Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 21 Jul 2016 13:11:15 +0000 Subject: [PATCH] RichText fixes git-svn-id: svn://ultimatepp.org/upp/trunk@10087 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/RichText/TxtPaint.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/uppsrc/RichText/TxtPaint.cpp b/uppsrc/RichText/TxtPaint.cpp index 4e8209394..2dc40d117 100644 --- a/uppsrc/RichText/TxtPaint.cpp +++ b/uppsrc/RichText/TxtPaint.cpp @@ -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); } }