diff options
author | Eike Rathke <erack@redhat.com> | 2021-12-15 23:31:09 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-12-16 02:39:06 +0100 |
commit | a79fc65f583b3ec2bb924bc25b105dda59099f61 (patch) | |
tree | 10107d13031fc9ac8ed4ad1d9b20d5971d18210c /sc/source | |
parent | 302d33f94607ac0ef8f0bad927ba290b19bc44a3 (diff) |
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 <erack@redhat.com>
Tested-by: Jenkins
(cherry picked from commit ec4f8cd2172bf7b232961f31ebd22d7e13af261e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126882
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/xmlsource/xmlsourcedlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx index 12837914d314..ad6b770eca03 100644 --- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx +++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx @@ -553,7 +553,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 ); |