# HG changeset patch # User laurent # Date 1251311085 -7200 # Node ID ea47ebbe23b77cd67a96693a95c1be33dd819e1a # Parent 9089bc4a92e592df444d55b30e1a35f57a3445a3 Bug with tabs images on Windows fixed diff -r 9089bc4a92e5 -r ea47ebbe23b7 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: