diff options
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 05bd1cc15a0e..e88d99166eed 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1400,7 +1400,8 @@ void ScCheckListMenuControl::setPopupEndAction(Action* p) IMPL_LINK_NOARG(ScCheckListMenuControl, PopupModeEndHdl, weld::Popover&, void) { - clearSelectedMenuItem(); + if (mxMenu) + clearSelectedMenuItem(); if (mxPopupEndAction) mxPopupEndAction->execute(); |