RichText: HeaderFooter: Fixed GCC compilation

git-svn-id: svn://ultimatepp.org/upp/trunk@6486 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-10-24 11:22:01 +00:00
parent b496b51468
commit d8e8ffbf02

View file

@ -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)