sc/source/ui/cctrl/checklistmenu.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 66b95d7117e034f63077e3ce948aa26c250e14f1
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Dec 9 10:35:08 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Dec 9 16:51:37 2021 +0100

    initially nothing is selected, so mnSelectedMenu should be MENU_NOT_SELECTED
    
    Change-Id: Ied8f139c34bb888ac763eeb5f2363255078e47c2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126578
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/ui/cctrl/checklistmenu.cxx 
b/sc/source/ui/cctrl/checklistmenu.cxx
index e1c68406b8db..7c64970e0959 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -580,10 +580,10 @@ ScCheckListMenuControl::~ScCheckListMenuControl()
 void ScCheckListMenuControl::prepWindow()
 {
     mxMenu->set_size_request(-1, mxMenu->get_preferred_size().Height() + 2);
-    mnSelectedMenu = 0;
+    mnSelectedMenu = MENU_NOT_SELECTED;
     if (mxMenu->n_children())
     {
-        mxMenu->set_cursor(mnSelectedMenu);
+        mxMenu->set_cursor(0);
         mxMenu->unselect_all();
     }
 

Reply via email to