diff options
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 4ff62fc5862a..628465e0d085 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -4378,6 +4378,8 @@ bool ScCompiler::NextNewToken( bool bInArray ) OUString aUpper; +Label_Rewind: + do { const OUString aOrg( cSymbol ); @@ -4511,7 +4513,11 @@ bool ScCompiler::NextNewToken( bool bInArray ) // and 2016 until 5.1.4 OUString aErrRef( mxSymbols->getSymbol( ocErrRef)); if (aUpper.indexOf( aErrRef) >= 0 && IsReference( aUpper, &aErrRef)) + { + if (mbRewind) + goto Label_Rewind; return true; + } if ( meExtendedErrorDetection != EXTENDED_ERROR_DETECTION_NONE ) { |