From d372c0be9d7f8156a3892d6eed7c5790a4bf87cc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 14 Sep 2020 15:07:34 +0100 Subject: provide a ScDocument arg for ScRange::Parse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Caolán McNamara --- sc/source/ui/app/inputhdl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source') 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; -- cgit v1.2.3