summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2002-08-20 09:01:22 +0000
committerCaolán McNamara <cmc@openoffice.org>2002-08-20 09:01:22 +0000
commita7644966180632abe611174d7e4e9510e13f7718 (patch)
treebde61aad825e4f58a6d17da9368cc933537867d2 /svtools
parent936483b92b5dd4c5a5ab180ef7e5f4463dc1cb60 (diff)
#102433# hex sequence may end in early } { which word accepts, so we have to as well
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svrtf/parrtf.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index 141db34b45c6..7501622680dc 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: parrtf.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: cmc $ $Date: 2002-04-16 17:06:23 $
+ * last change: $Author: cmc $ $Date: 2002-08-20 10:01:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -388,8 +388,13 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak )
if( '\\' == nNextCh &&
'\'' == ( nNextCh = GetNextChar()) )
aDblChr[1] = (sal_Char)GetHexValue();
- else
+ else if ((nNextCh != '{') && (nNextCh != '}'))
aDblChr[1] = (sal_Char)nNextCh;
+ else
+ {
+ aDblChr[1] = ' ';
+ bWeiter = FALSE;
+ }
SetSrcEncoding( eSvSet );