Bug with tabs images on Windows fixed
authorlaurent
Wed, 26 Aug 2009 20:24:45 +0200
changeset 397 ea47ebbe23b7
parent 396 9089bc4a92e5
child 398 c215899298c7
Bug with tabs images on Windows fixed
PLCOpenEditor.py
--- 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: