changeset 965:dbb5462c471f

Do not draw active frame when it is not set
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 17 Nov 2010 18:49:58 +0800
parents 1028f6278ead
children ca993c473379
files pyink/frameline.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/frameline.py	Wed Nov 17 17:25:44 2010 +0800
+++ b/pyink/frameline.py	Wed Nov 17 18:49:58 2010 +0800
@@ -331,6 +331,9 @@
         pass
 
     def _draw_active(self):
+        if self._active_frame == -1:
+            return
+        
         win = self.window
         w_x, w_y, w_w, w_h, depth = win.get_geometry()