diff pyink/domview_ui.py @ 1355:f1fa284fc9c9

Fix error bug for showing mouse over on frameline after removing a layer
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 13 Feb 2011 14:40:04 +0800
parents 0b5ee9c90af7
children 60f2c9a24cdb
line wrap: on
line diff
--- a/pyink/domview_ui.py	Sun Feb 13 13:12:10 2011 +0800
+++ b/pyink/domview_ui.py	Sun Feb 13 14:40:04 2011 +0800
@@ -109,6 +109,13 @@
 	vbox = self._frameline_vbox
 	line = self._framelines[layer_idx]
 	
+        if self._last_active_frameline == line:
+            self._last_active_frameline = None
+            pass
+        if self._last_mouse_over_frameline == line:
+            self._last_mouse_over_frameline = None
+            pass
+        
 	hbox = line.parent
 	vbox.remove(hbox)
 	del self._framelines[layer_idx]