diff options
-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 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 ); |