sc/source/ui/cctrl/checklistmenu.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 417f6fde55a7fa59f27aa9a79132e5b2cc615270
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Dec 8 12:02:32 2022 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Thu Dec 8 13:58:01 2022 +0000

    Resolves: tdf#152325 initial "select" may not set the cursor to that pos
    
    but setting the cursor will 'select' for the default "single" selection
    mode.
    
    Change-Id: Ib7c3dfcce72bad69741b5bc3eb159a6ed3bc8142
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143817
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sc/source/ui/cctrl/checklistmenu.cxx 
b/sc/source/ui/cctrl/checklistmenu.cxx
index e0808e1e5915..7506f7e56231 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1374,7 +1374,7 @@ size_t ScCheckListMenuControl::initMembers(int 
nMaxMemberWidth)
     }
 
     if (nVisMemCount)
-        mpChecks->select(0);
+        mpChecks->set_cursor(0);
 
     return nVisMemCount;
 }

Reply via email to