From 1623b021cf580d3f84d562b638cb034847792401 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 21 Dec 2011 01:21:50 +0100 Subject: set focus to Name Edit Line in Define Names dialog --- sc/source/ui/namedlg/namedefdlg.cxx | 7 ++++--- 1 file 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() -- cgit