Fixed QTF issue

git-svn-id: svn://ultimatepp.org/upp/trunk@493 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2008-10-01 12:12:37 +00:00
parent b802e680c5
commit a2243b495a

View file

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