From 4d52e5a013d4315c14b741bb09b40d01b8846df7 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Ledure Date: Wed, 3 Nov 2021 11:32:13 +0100 Subject: ScriptForge - (SF_PopupMenu) Fix com.sun.star.awt.MenuItemStyle.AUTOCHECK To have checkboxes displayed correctly in KDE, it is necessary to use com.sun.star.awt.MenuItemStyle.CHECKABLE instead. No regression in behaviour observed so far in other environments. Change-Id: If15b2ff597f1cdffe2df65fe2352ffef0f770cb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124639 Tested-by: Jean-Pierre Ledure Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure --- wizards/source/sfwidgets/SF_PopupMenu.xba | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wizards') diff --git a/wizards/source/sfwidgets/SF_PopupMenu.xba b/wizards/source/sfwidgets/SF_PopupMenu.xba index 3ddda64306bd..8f231983551a 100644 --- a/wizards/source/sfwidgets/SF_PopupMenu.xba +++ b/wizards/source/sfwidgets/SF_PopupMenu.xba @@ -534,7 +534,7 @@ Try: Case cstNormal .insertItem(LastItem, sName, 0, -1) Case cstCheck - .insertItem(LastItem, sName, com.sun.star.awt.MenuItemStyle.AUTOCHECK, -1) + .insertItem(LastItem, sName, com.sun.star.awt.MenuItemStyle.CHECKABLE, -1) .checkItem(LastItem, Status) Case cstRadio .insertItem(LastItem, sName, com.sun.star.awt.MenuItemStyle.RADIOCHECK, -1) @@ -752,4 +752,4 @@ Finally: End Function ' SFWidgets.SF_PopupMenu._SplitMenuItem REM ============================================ END OF SFWIDGETS.SF_POPUPMENU - + \ No newline at end of file -- cgit