summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-01-29 18:19:33 +0100
committerEike Rathke <erack@redhat.com>2018-01-29 18:45:48 +0100
commit3ddb9a027bb138fd7640abd4ed8d10fda95a94f8 (patch)
tree0e15365444eec669ed81770dbf960a98ed894ddf
parent6a67833ee90f3c0c86106847eb8b1879c25f852c (diff)
Let CheckLinkFormulaNeedingCheck() return early if found
Change-Id: I54ab8dc14f81d6b18b0d17f448187d19d8e396fc
-rw-r--r--sc/source/core/data/documen8.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index eb58eb080213..172d127cc517 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -1186,12 +1186,18 @@ void ScDocument::CheckLinkFormulaNeedingCheck( const ScTokenArray& rCode )
if (rCode.GetCodeLen())
{
if (rCode.HasOpCodeRPN(ocDde) || rCode.HasOpCodeRPN(ocWebservice))
+ {
SetLinkFormulaNeedingCheck(true);
+ return;
+ }
}
else if (rCode.GetLen())
{
if (rCode.HasOpCode(ocDde) || rCode.HasOpCode(ocWebservice))
+ {
SetLinkFormulaNeedingCheck(true);
+ return;
+ }
}
else
{