From 3a88f973b3d971805cfdae59fac2c1d5a5f8c38d Mon Sep 17 00:00:00 2001 From: jp Date: Wed, 12 Sep 2001 10:22:50 +0000 Subject: Bug #I1522#: _GetNextToken - don't forget to set the previous UCharSkip value --- svtools/source/svrtf/parrtf.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'svtools/source/svrtf') 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; -- cgit