summaryrefslogtreecommitdiff
path: root/svtools/source/svrtf
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-09-12 10:22:50 +0000
committerjp <jp@openoffice.org>2001-09-12 10:22:50 +0000
commit3a88f973b3d971805cfdae59fac2c1d5a5f8c38d (patch)
tree88a06a0777eaa399dd4ae3af4e749a1c597f0321 /svtools/source/svrtf
parent9ab9836149606ff5ac1a5312623186897e3bbf01 (diff)
Bug #I1522#: _GetNextToken - don't forget to set the previous UCharSkip value
Diffstat (limited to 'svtools/source/svrtf')
-rw-r--r--svtools/source/svrtf/parrtf.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index 1651b1a83397..ed8a575ed738 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: parrtf.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: jp $ $Date: 2001-03-27 20:15:21 $
+ * last change: $Author: jp $ $Date: 2001-09-12 11:22:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -297,7 +297,12 @@ ISCHAR_SCANTEXT:
case '}':
--nOpenBrakets;
if( 0 <= nOpenBrakets )
+ {
aParserStates.Remove( nOpenBrakets );
+ nUCharOverread = aParserStates.Count()
+ ? aParserStates[aParserStates.Count()-1].nUCharOverread
+ : 1;
+ }
DBG_ASSERT( nOpenBrakets == aParserStates.Count(),
"ParserStateStack unequal to bracket count" );
nRet = nNextCh;