widget/menue.cpp: avoid paint of toggle buttons with more than 2 opts

This commit is contained in:
2018-04-24 14:48:02 +02:00
parent e931932800
commit e4cd53bc90

View File

@@ -1722,7 +1722,8 @@ int CMenuOptionNumberChooser::paint(bool selected)
}
//manage toggle button
handleOptionIcon(l_option);
if (localized.size() == 2)
handleOptionIcon(l_option);
//paint item
prepareItem(selected, height);
@@ -2028,7 +2029,8 @@ int CMenuOptionChooser::paint( bool selected)
}
//manage toggle button
handleOptionIcon(l_option);
if (number_of_options == 2)
handleOptionIcon(l_option);
//paint item
prepareItem(selected, height);