From d8e8ffbf02edac42fbf42d9210808f289fffb2fc Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 24 Oct 2013 11:22:01 +0000 Subject: [PATCH] RichText: HeaderFooter: Fixed GCC compilation git-svn-id: svn://ultimatepp.org/upp/trunk@6486 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/RichText/HeaderFooter.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/uppsrc/RichText/HeaderFooter.cpp b/uppsrc/RichText/HeaderFooter.cpp index 90fcbf51d..0b16050f1 100644 --- a/uppsrc/RichText/HeaderFooter.cpp +++ b/uppsrc/RichText/HeaderFooter.cpp @@ -64,14 +64,16 @@ void RichText::PaintHeaderFooter(PageDraw& pw, const Rect& page, const PaintInfo void RichText::PickHeader(pick_ RichText& txt) { - txt.ClearHeader(); - header.Create() = txt; + RichText b = txt; + b.ClearHeader(); + header.Create() = b; } void RichText::PickFooter(pick_ RichText& txt) { - txt.ClearFooter(); - footer.Create() = txt; + RichText b = txt; + b.ClearFooter(); + footer.Create() = b; } void RichText::SetHeaderQtf(const char *qtf)