diff pyink/domview_ui.py @ 1528:b7d70341ee57

Insert layer with unique name
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 31 Aug 2011 22:23:04 +0800
parents 4c349b214877
children
line wrap: on
line diff
--- a/pyink/domview_ui.py	Wed Aug 31 17:16:44 2011 +0800
+++ b/pyink/domview_ui.py	Wed Aug 31 22:23:04 2011 +0800
@@ -809,7 +809,10 @@
     #
     def insert_layer(self, layer_idx):
 	self._dom.insert_layer(layer_idx)
+        layer_name = self._dom.get_layer_name(layer_idx)
+        
 	self._fl_stack.add_frameline(layer_idx)
+        self._fl_stack.set_layer_label(layer_idx, layer_name)
 	self._fl_stack.show_framelines()
 	pass