changeset 1532:4a92b639a1cd

Clear selection set when switching current scene. To clear selection set after switching away from current to another scene. It avoids Inkscape select on nodes they are not saw after switching.
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 30 Sep 2011 12:31:33 +0800
parents 5a3597eba722
children 82d3a6b5d1c4
files pyink/MBScene.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Wed Sep 28 21:54:39 2011 +0800
+++ b/pyink/MBScene.py	Fri Sep 30 12:31:33 2011 +0800
@@ -157,6 +157,7 @@
 	pass
     
     def _enterGroup(self, scene_group):
+	self.desktop.selection.clear()
 	self.desktop.setCurrentLayer(scene_group.spitem)
 	pass