Kaydet (Commit) 2119f464 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't set current entry for every entry during init

üst 2cc7b083
...@@ -81,7 +81,7 @@ public: ...@@ -81,7 +81,7 @@ public:
ScRangeManagerTable( Window* pParent, boost::ptr_map<rtl::OUString, ScRangeName>& aTabRangeNames ); ScRangeManagerTable( Window* pParent, boost::ptr_map<rtl::OUString, ScRangeName>& aTabRangeNames );
virtual ~ScRangeManagerTable(); virtual ~ScRangeManagerTable();
void addEntry( const ScRangeNameLine& rLine ); void addEntry( const ScRangeNameLine& rLine, bool bSetCurEntry = true );
void DeleteSelectedEntries(); void DeleteSelectedEntries();
void SetEntry( const ScRangeNameLine& rLine ); void SetEntry( const ScRangeNameLine& rLine );
......
...@@ -104,10 +104,11 @@ ScRangeManagerTable::~ScRangeManagerTable() ...@@ -104,10 +104,11 @@ ScRangeManagerTable::~ScRangeManagerTable()
Clear(); Clear();
} }
void ScRangeManagerTable::addEntry(const ScRangeNameLine& rLine) void ScRangeManagerTable::addEntry(const ScRangeNameLine& rLine, bool bSetCurEntry)
{ {
SvLBoxEntry* pEntry = InsertEntryToColumn( createEntryString(rLine), LIST_APPEND, 0xffff); SvLBoxEntry* pEntry = InsertEntryToColumn( createEntryString(rLine), LIST_APPEND, 0xffff);
SetCurEntry(pEntry); if (bSetCurEntry)
SetCurEntry(pEntry);
} }
void ScRangeManagerTable::GetCurrentLine(ScRangeNameLine& rLine) void ScRangeManagerTable::GetCurrentLine(ScRangeNameLine& rLine)
...@@ -141,7 +142,7 @@ void ScRangeManagerTable::Init() ...@@ -141,7 +142,7 @@ void ScRangeManagerTable::Init()
if (!it->second->HasType(RT_DATABASE) && !it->second->HasType(RT_SHARED)) if (!it->second->HasType(RT_DATABASE) && !it->second->HasType(RT_SHARED))
{ {
aLine.aName = it->second->GetName(); aLine.aName = it->second->GetName();
addEntry(aLine); addEntry(aLine, false);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment