changeset 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 f92be354ad24
children ac61d86987af
files pyink/domview_ui.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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]