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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 74f1f2f647
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-29 (Sun, 29 Apr 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2018-04-29 03:13:07 +02:00
committed by vanhofen
parent de38be46b3
commit 38d3b6e56c

View File

@@ -1754,7 +1754,8 @@ int CMenuOptionNumberChooser::paint(bool selected)
}
//manage toggle button
handleOptionIcon(l_option);
if (localized.size() == 2)
handleOptionIcon(l_option);
//paint item
prepareItem(selected, height);
@@ -2060,7 +2061,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);