diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-09-23 21:49:01 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-09-24 03:52:32 +0200 |
commit | 24f4f5bc7a68a3375f655ec3f4b9f3313c4609b2 (patch) | |
tree | e951f94930d4db60b15c8933ec8590614f1e28d1 /sc | |
parent | I wonder if this fixes the libxml build error on tinderbox (diff) | |
download | core-24f4f5bc7a68a3375f655ec3f4b9f3313c4609b2.tar.gz core-24f4f5bc7a68a3375f655ec3f4b9f3313c4609b2.zip |
Manage Names: set new entry as selected
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/namedlg.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/namedlg/namedlg.cxx | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/inc/namedlg.hxx b/sc/source/ui/inc/namedlg.hxx index bb6dd0799d24..49c69c29e43f 100644 --- a/sc/source/ui/inc/namedlg.hxx +++ b/sc/source/ui/inc/namedlg.hxx @@ -68,7 +68,7 @@ public: ScRangeManagerTable( Window* pParent, ScRangeName* pGlobalRangeName, std::map<rtl::OUString, ScRangeName*> aTabRangeNames ); ~ScRangeManagerTable() {}; - SvLBoxEntry* addEntry( const ScRangeNameLine& rLine ); + void addEntry( const ScRangeNameLine& rLine ); void GetCurrentLine(ScRangeNameLine& rLine); void UpdateEntries(); diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx index 4f6febfab50c..4bbb90b2d7bf 100644 --- a/sc/source/ui/namedlg/namedlg.cxx +++ b/sc/source/ui/namedlg/namedlg.cxx @@ -127,9 +127,10 @@ ScRangeManagerTable::ScRangeManagerTable( Window* pWindow, ScRangeName* pGlobalR maHeaderBar.Show(); } -SvLBoxEntry* ScRangeManagerTable::addEntry(const ScRangeNameLine& rLine) +void ScRangeManagerTable::addEntry(const ScRangeNameLine& rLine) { - return InsertEntryToColumn( createEntryString(rLine), LIST_APPEND, 0xffff); + SvLBoxEntry* pEntry = InsertEntryToColumn( createEntryString(rLine), LIST_APPEND, 0xffff); + SetCurEntry(pEntry); } void ScRangeManagerTable::GetCurrentLine(ScRangeNameLine& rLine) |