summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-14 15:07:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-17 15:38:36 +0200
commitd372c0be9d7f8156a3892d6eed7c5790a4bf87cc (patch)
treebc7b9268bf31a179dfc67c012dd2c394dfe7154c /sc/source
parent0e46ba3aa1822ba04a319b28bdc1ca4df6805064 (diff)
provide a ScDocument arg for ScRange::Parse
been like this since the initial import. It seems reasonable to pass the available ScDocument to ScRange::Parse to bring this use of ScRange into line with all the other cases. Change-Id: I1c9c4813b3bd2b09acc123e8814edbacddbd5f25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102680 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/app/inputhdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 6712b3c97930..9c008807e3b4 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -1756,7 +1756,7 @@ static OUString lcl_Calculate( const OUString& rFormula, ScDocument& rDoc, const
}
ScRange aTestRange;
- if ( bColRowName || (aTestRange.Parse(rFormula) & ScRefFlags::VALID) )
+ if ( bColRowName || (aTestRange.Parse(rFormula, &rDoc) & ScRefFlags::VALID) )
aValue += " ...";
return aValue;