summaryrefslogtreecommitdiff
path: root/sc/source/ui/namedlg
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-21 01:21:50 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-21 01:50:17 +0100
commit1623b021cf580d3f84d562b638cb034847792401 (patch)
tree0519bbcd426fb353f84463923031ebcf028b00c3 /sc/source/ui/namedlg
parent16af1bd2094c38ab2bbf070340717ba8405abbb5 (diff)
set focus to Name Edit Line in Define Names dialog
Diffstat (limited to 'sc/source/ui/namedlg')
-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()