summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/token.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index 6e938cdf0d13..e098a492e0fa 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -147,7 +147,8 @@ bool FormulaToken::IsRef() const
case svExternalDoubleRef:
return true;
default:
- ;
+ if (eOp == ocTableRef)
+ return true;
}
return false;
@@ -634,6 +635,12 @@ bool FormulaTokenArray::HasReferences() const
return true;
}
+ for (sal_uInt16 i = 0; i < nRPN; ++i)
+ {
+ if (pRPN[i]->IsRef())
+ return true;
+ }
+
return false;
}