summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-30 18:25:04 +0300
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-30 18:28:51 +0300
commit9f363ee99482c86140f8aa7e6503e316d6d085f2 (patch)
tree3830d67bbba9436e32138a08e1913b86cbc2b73f
parent320ae3dba8b95a1286d579c37b33b34116c5bb5b (diff)
ignore missing children, tdf#99422
Change-Id: I2d4a7f03940045c34369876aea78c3eda81da78b
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index e8cb32d2b13f..1cfb393587a9 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1138,6 +1138,7 @@ void ScCheckListMenuWindow::setAllMemberState(bool bSet)
{
aParents.insert(maMembers[i].mpParent);
}
+
for (auto itr = aParents.begin(), itrEnd = aParents.end(); itr != itrEnd; ++itr)
{
if (!(*itr))
@@ -1146,6 +1147,9 @@ void ScCheckListMenuWindow::setAllMemberState(bool bSet)
for( sal_uInt16 i = 0; i < nCount; ++i)
{
SvTreeListEntry* pEntry = maChecks->GetEntry(i);
+ if (!pEntry)
+ continue;
+
maChecks->CheckEntry(pEntry, bSet);
}
}