summaryrefslogtreecommitdiff
path: root/sc/source/ui/xmlsource/xmlsourcedlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/xmlsource/xmlsourcedlg.cxx')
-rw-r--r--sc/source/ui/xmlsource/xmlsourcedlg.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
index 0bbfa9d200b8..8a9bac6be412 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 );