From a2243b495a0493efdcd3551ba820d4d65eae2f2f Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 1 Oct 2008 12:12:37 +0000 Subject: [PATCH] Fixed QTF issue git-svn-id: svn://ultimatepp.org/upp/trunk@493 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/RichText/ParseQtf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uppsrc/RichText/ParseQtf.cpp b/uppsrc/RichText/ParseQtf.cpp index 9d2ce05f5..e5d6ad831 100644 --- a/uppsrc/RichText/ParseQtf.cpp +++ b/uppsrc/RichText/ParseQtf.cpp @@ -228,7 +228,6 @@ void RichQtfParser::SetFormat() } void RichQtfParser::Flush() { - SetFormat(); if(text.GetLength()) { ASSERT(!istable); paragraph.Cat(text, format); @@ -877,6 +876,7 @@ void RichQtfParser::Parse(const char *qtf, byte _accesskey) if(*term == '\1') { if(istable) EndPart(); + SetFormat(); const char *b = ++term; for(; *term && *term != '\1'; term++) if(*term == '\n') { @@ -891,6 +891,7 @@ void RichQtfParser::Parse(const char *qtf, byte _accesskey) else { if(!Key('`')) Key('\\'); if((byte)*term >= ' ') { + SetFormat(); do { if(istable) EndPart();