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:
ScRangeManagerTable( Window* pParent, boost::ptr_map<rtl::OUString, ScRangeName>& aTabRangeNames );
virtual ~ScRangeManagerTable();
void addEntry( const ScRangeNameLine& rLine );
void addEntry( const ScRangeNameLine& rLine, bool bSetCurEntry = true );
void DeleteSelectedEntries();
void SetEntry( const ScRangeNameLine& rLine );
......
......@@ -104,9 +104,10 @@ ScRangeManagerTable::~ScRangeManagerTable()
Clear();
}
void ScRangeManagerTable::addEntry(const ScRangeNameLine& rLine)
void ScRangeManagerTable::addEntry(const ScRangeNameLine& rLine, bool bSetCurEntry)
{
SvLBoxEntry* pEntry = InsertEntryToColumn( createEntryString(rLine), LIST_APPEND, 0xffff);
if (bSetCurEntry)
SetCurEntry(pEntry);
}
......@@ -141,7 +142,7 @@ void ScRangeManagerTable::Init()
if (!it->second->HasType(RT_DATABASE) && !it->second->HasType(RT_SHARED))
{
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