summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-04-08 19:04:22 +0200
committerEike Rathke <erack@redhat.com>2015-04-08 20:45:47 +0200
commit706727932e73a6899bfd820bf56aa691c956bd84 (patch)
tree8aff4b5d1f7a69421d7e98f5c5bbeafdc6baf531 /sc
parent5590bfe72bc086dcdb56eb0a998a1a52e6224097 (diff)
TableRef: push ref only valid after open
Change-Id: I3ea00ddec1a740cbcff9eb22727b1f8ce32bb373
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/compiler.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index b838e323ee9c..f3c1155147c5 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -4905,7 +4905,8 @@ bool ScCompiler::HandleTableRef()
eState = ((eState == sClose) ? sSep : sStop);
break;
case ocPush:
- if (mpToken->GetType() == svSingleRef || mpToken->GetType() == svDoubleRef)
+ if (eState == sOpen &&
+ (mpToken->GetType() == svSingleRef || mpToken->GetType() == svDoubleRef))
bColumnRange = true;
eState = sStop;
break;