From 1d3c373bf8714bd0d54ffb683054ea9816473ec3 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 1 Oct 2008 12:17:00 +0000 Subject: [PATCH] QTF fix.. git-svn-id: svn://ultimatepp.org/upp/trunk@494 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/RichText/ParseQtf.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/uppsrc/RichText/ParseQtf.cpp b/uppsrc/RichText/ParseQtf.cpp index e5d6ad831..89a544ac7 100644 --- a/uppsrc/RichText/ParseQtf.cpp +++ b/uppsrc/RichText/ParseQtf.cpp @@ -809,6 +809,7 @@ void RichQtfParser::Parse(const char *qtf, byte _accesskey) Cat(c); if(*term == ';') term++; + SetFormat(); } else if(Key2('{', ':')) { @@ -821,8 +822,10 @@ void RichQtfParser::Parse(const char *qtf, byte _accesskey) Key('}'); } else - if(Key('&')) + if(Key('&')) { + SetFormat(); EndPart(); + } else if(Key2('$')) { Flush(); @@ -866,12 +869,15 @@ void RichQtfParser::Parse(const char *qtf, byte _accesskey) } else if(*term == '_') { + SetFormat(); text.Cat(160); term++; } else - if(Key2('-', '|')) + if(Key2('-', '|')) { + SetFormat(); text.Cat(9); + } else if(*term == '\1') { if(istable)