summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/namedlg/namedefdlg.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx
index 9f870475a2f5..1f335650fcd7 100644
--- a/sc/source/ui/namedlg/namedefdlg.cxx
+++ b/sc/source/ui/namedlg/namedefdlg.cxx
@@ -115,10 +115,11 @@ ScNameDefDlg::ScNameDefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParen
aRange.Format( aAreaStr, ABS_DREF3D, mpDoc,
ScAddress::Details(mpDoc->GetAddressConvention(), 0, 0) );
- Selection aCurSel = Selection( 0, SELECTION_MAX );
- maEdRange.GrabFocus();
maEdRange.SetText( aAreaStr );
- maEdRange.SetSelection( aCurSel );
+
+ Selection aCurSel = Selection( 0, SELECTION_MAX );
+ maEdName.GrabFocus();
+ maEdName.SetSelection( aCurSel );
}
void ScNameDefDlg::CancelPushed()