fix type introduced by f33942053466 (fix pylint warning "(undefined-loop-variable) Using possibly undefined loop variable 'X'")
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 25 May 2018 18:37:59 +0300
changeset 2169 baa0c5111457
parent 2168 a66062a205ae
child 2170 ce5bd74ed552
fix type introduced by f33942053466 (fix pylint warning "(undefined-loop-variable) Using possibly undefined loop variable 'X'")
IDEFrame.py
--- a/IDEFrame.py	Fri May 25 18:34:05 2018 +0300
+++ b/IDEFrame.py	Fri May 25 18:37:59 2018 +0300
@@ -323,7 +323,7 @@
                 split = (wx.RIGHT, 1.0 - float(tab["size"][0]) / float(rect.width))
                 split_rect = wx.Rect(rect.x, rect.y,
                                      rect.width - tab["size"][0] - TAB_BORDER, rect.height)
-            split_id = id
+            split_id = idx
             break
     if split is not None:
         split_tab = tabs.pop(split_id)