summaryrefslogtreecommitdiff
path: root/community/dispcalgui/dispcalGUI-1.5.3.1-wxgtk3.patch
blob: e5c5560318d7078f39b0a8f0448bafb133f4e750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/dispcalGUI/dispcalGUI.py
+++ b/dispcalGUI/dispcalGUI.py
@@ -1544,9 +1544,10 @@
 		for lstr, lcode in llist:
 			menuitem = languages.Append(-1, "&" + lstr, kind=wx.ITEM_RADIO)
 			if (lcode.upper().replace("EN", "US") in flagart.catalog):
-				menuitem.SetBitmap(
-					flagart.catalog[lcode.upper().replace("EN", 
-														  "US")].getBitmap())
+				bitmap = flagart.catalog[lcode.upper().replace("EN",
+															   "US")].getBitmap()
+				if menuitem.GetKind() == wx.ITEM_NORMAL:
+					menuitem.SetBitmap(bitmap)
 			if lang.getcode() == lcode:
 				menuitem.Check()
 				font = menuitem.Font