sc/inc/address.hxx | 2 +- sc/source/ui/app/inputhdl.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit d372c0be9d7f8156a3892d6eed7c5790a4bf87cc Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Sep 14 15:07:34 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Sep 17 15:38:36 2020 +0200 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 <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits