--- a/PLCOpenEditor.py Wed Aug 26 19:28:16 2009 +0200
+++ b/PLCOpenEditor.py Wed Aug 26 20:24:45 2009 +0200
@@ -907,10 +907,11 @@
dc.Clear()
dc.DrawBitmap(icon1, 0, 0)
dc.DrawBitmap(icon2, icon1.GetWidth() - 1, 0)
- # Store bitmap in ImageList
- index = self.TabsImageList.Add(tmp_bitmap)
- # Save bitmap index in ImageList in dictionary
- self.TabsImageListIndexes[(icon1_name, icon2_name)] = index
+ if wx.Platform != '__WXMSW__':
+ # Store bitmap in ImageList
+ index = self.TabsImageList.Add(tmp_bitmap)
+ # Save bitmap index in ImageList in dictionary
+ self.TabsImageListIndexes[(icon1_name, icon2_name)] = index
if USE_AUI:
return tmp_bitmap
else: