diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2024-07-25 02:34:18 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2024-07-25 12:57:42 +0200 |
commit | 4aa2d5ede17ddf7345804deb200983367990a7e2 (patch) | |
tree | 7d0a2a3118294052f227491a8d270e182d756217 | |
parent | ebada44e9bac76d6ccbdc387ed673d938830bfd0 (diff) |
Related: tdf#162093 TableRef item specifier may occur standalone
also in lexical canner.
Change-Id: Ic265bbd8a0d9baa81039b8d1748c63ad6686bfc2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170989
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 6b3fc6555959..28aa2c73a9c5 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -2311,7 +2311,8 @@ Label_MaskStateMachine: else if( nMask & ScCharFlags::CharErrConst ) { *pSym++ = c; - if (!maTableRefs.empty() && maTableRefs.back().mnLevel == 2) + sal_uInt16 nLevel; + if (!maTableRefs.empty() && ((nLevel = maTableRefs.back().mnLevel) == 2 || nLevel == 1)) eState = ssGetTableRefItem; else eState = ssGetErrorConstant; |