From 262656092fda6398e6b028a92f2ac7222ce11d30 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 15 Dec 2021 23:31:09 +0100 Subject: Resolves: tdf#126565 RefEditModified() preset current sheet for address-only Change-Id: Ifa662a9d55fae10e3e1e3e115c9c5eb10972cbbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126899 Reviewed-by: Eike Rathke Tested-by: Jenkins (cherry picked from commit ec4f8cd2172bf7b232961f31ebd22d7e13af261e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126883 Reviewed-by: Xisco Fauli --- sc/source/ui/xmlsource/xmlsourcedlg.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sc') diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx index edc8ca3d5dcb..b65237ff575f 100644 --- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx +++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx @@ -558,7 +558,9 @@ void ScXMLSourceDlg::RefEditModified() OUString aRefStr = mxRefEdit->GetText(); // Check if the address is valid. + // Preset current sheet in case only address was entered. ScAddress aLinkedPos; + aLinkedPos.SetTab( ScDocShell::GetCurTab()); ScRefFlags nRes = aLinkedPos.Parse(aRefStr, *mpDoc, mpDoc->GetAddressConvention()); bool bValid = ( (nRes & ScRefFlags::VALID) == ScRefFlags::VALID ); -- cgit