[Libreoffice-commits] .: 2 commits - sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Sun Mar 25 20:06:59 PDT 2012
sc/source/ui/cctrl/checklistmenu.cxx | 2 ++
sc/source/ui/namedlg/namemgrtable.cxx | 2 ++
2 files changed, 4 insertions(+)
New commits:
commit cb2c9eb114d3a76096fd404d733f86702246b60e
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Mar 26 05:03:52 2012 +0200
prevent update during init in name dlgs, related fdo#45679
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx
index d806d3b..6b52369 100644
--- a/sc/source/ui/namedlg/namemgrtable.cxx
+++ b/sc/source/ui/namedlg/namemgrtable.cxx
@@ -127,6 +127,7 @@ void ScRangeManagerTable::GetLine(ScRangeNameLine& rLine, SvLBoxEntry* pEntry)
void ScRangeManagerTable::Init()
{
+ SetUpdateMode(false);
Clear();
for (boost::ptr_map<rtl::OUString, ScRangeName>::const_iterator itr = mrRangeMap.begin();
itr != mrRangeMap.end(); ++itr)
@@ -147,6 +148,7 @@ void ScRangeManagerTable::Init()
}
}
}
+ SetUpdateMode(true);
}
const ScRangeData* ScRangeManagerTable::findRangeData(const ScRangeNameLine& rLine)
commit bd20b48795df0e23ac76d516d56366250157515f
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Mar 26 04:58:47 2012 +0200
prevent update during init in new autofilter dlg, fdo#45679
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index fc6dd9a..6db410c 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1164,6 +1164,7 @@ void ScCheckListMenuWindow::initMembers()
{
size_t n = maMembers.size();
size_t nVisMemCount = 0;
+ maChecks.SetUpdateMode(false);
for (size_t i = 0; i < n; ++i)
{
maChecks.InsertEntry(maMembers[i].maName);
@@ -1188,6 +1189,7 @@ void ScCheckListMenuWindow::initMembers()
maChkToggleAll.SetState(STATE_DONTKNOW);
mePrevToggleAllState = STATE_DONTKNOW;
}
+ maChecks.SetUpdateMode(true);
}
void ScCheckListMenuWindow::setConfig(const Config& rConfig)
More information about the Libreoffice-commits
mailing list