Multiple selection in Menu

This commit is contained in:
Bertrand Songis
2020-08-25 10:07:39 +02:00
parent 8632c038f8
commit 3cbb18a521
+2 -2
View File
@@ -113,8 +113,8 @@ void MenuBody::paint(BitmapBuffer * dc)
}
Menu * menu = getParentMenu();
if (menu->multiple && line.isChecked && line.isChecked()) {
theme->drawCheckBox(dc, 1, width() - 35, i * MENUS_LINE_HEIGHT + (MENUS_LINE_HEIGHT - 20) / 2, 0);
if (menu->multiple && line.isChecked) {
theme->drawCheckBox(dc, line.isChecked(), width() - 35, i * MENUS_LINE_HEIGHT + (MENUS_LINE_HEIGHT - 20) / 2, 0);
}
if (i > 0) {