diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-21 01:21:50 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-21 01:50:17 +0100 |
commit | 1623b021cf580d3f84d562b638cb034847792401 (patch) | |
tree | 0519bbcd426fb353f84463923031ebcf028b00c3 | |
parent | 16af1bd2094c38ab2bbf070340717ba8405abbb5 (diff) |
set focus to Name Edit Line in Define Names dialog
-rw-r--r-- | sc/source/ui/namedlg/namedefdlg.cxx | 7 |
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() |