summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2002-08-01 08:06:06 +0000
committerThomas Lange <tl@openoffice.org>2002-08-01 08:06:06 +0000
commit01b65e8e38c0d639f0de30b104024e94282481ac (patch)
tree6e0d8b16efcb277141946611b30ab8005bba75d9
parent4e02e9ab571a08ea30a048d6cf9dd3568ef224c5 (diff)
#101945# advance with token positionin parser always.
-rw-r--r--starmath/source/parse.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 21450d720a0c..b07a34de69da 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: parse.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: tl $ $Date: 2002-02-06 12:37:27 $
+ * last change: $Author: tl $ $Date: 2002-08-01 09:06:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -482,14 +482,15 @@ void SmParser::NextToken()
//?? does parseAnyToken handles Japanese (CJK) spaces correct ??
// seems not to be so...
while (UnicodeType::SPACE_SEPARATOR ==
- rCC.getType( BufferString, BufferIndex ))
- ++BufferIndex;
+ rCC.getType( BufferString, BufferIndex ))
+ ++BufferIndex;
aRes = rCC.parseAnyToken( BufferString, BufferIndex,
coStartFlags, aEmptyStr,
coContFlags, aEmptyStr );
nRealStart = BufferIndex + (xub_StrLen) aRes.LeadingWhiteSpace;
+ BufferIndex = nRealStart;
bCont = FALSE;
if ( aRes.TokenType == 0 &&