summaryrefslogtreecommitdiff
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
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>
-rw-r--r--sc/inc/address.hxx2
-rw-r--r--sc/source/ui/app/inputhdl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index 5fc9a361cb66..03d60bf97ee4 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -551,7 +551,7 @@ public:
inline bool In( const ScAddress& ) const; ///< is Address& in Range?
inline bool In( const ScRange& ) const; ///< is Range& in Range?
- SC_DLLPUBLIC ScRefFlags Parse( const OUString&, const ScDocument* = nullptr,
+ SC_DLLPUBLIC ScRefFlags Parse( const OUString&, const ScDocument*,
const ScAddress::Details& rDetails = ScAddress::detailsOOOa1,
ScAddress::ExternalInfo* pExtInfo = nullptr,
const css::uno::Sequence<css::sheet::ExternalLinkInfo>* pExternalLinks = nullptr,
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;