sc/source/ui/cctrl/checklistmenu.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit ac4b051e3247ccc9dfc40ca0699537ce4256de35 Author: Kohei Yoshida <kohei.yosh...@suse.com> Date: Fri Nov 18 21:38:09 2011 -0500 Check the empty set state after launching. Sometimes we get empty set especially when all rows are filtered out. diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index e96e6d4..9b23197 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1220,6 +1220,10 @@ void ScCheckListMenuWindow::getResult(ResultType& rResult) void ScCheckListMenuWindow::launch(const Rectangle& rRect) { packWindow(); + if (!maConfig.mbAllowEmptySet) + // We need to have at least one member selected. + maBtnOk.Enable(maChecks.GetCheckedEntryCount() != 0); + StartPopupMode(rRect, (FLOATWIN_POPUPMODE_DOWN | FLOATWIN_POPUPMODE_GRABFOCUS)); } _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits