diff tools/svg2code.py @ 434:b5c7670b524b

Add coord for stext
author Thinker K.F. Li <thinker@branda.to>
date Wed, 29 Jul 2009 16:35:13 +0800
parents bf1addb037b7
children bb4f651090bf
line wrap: on
line diff
--- a/tools/svg2code.py	Wed Jul 29 16:35:03 2009 +0800
+++ b/tools/svg2code.py	Wed Jul 29 16:35:13 2009 +0800
@@ -659,6 +659,7 @@
 
 @check_mbname
 def translate_text(text, coord_id, codefo, doc):
+    coord_id = translate_shape_transform(text, coord_id, codefo)
     try:
         map = text.style_map
     except:	
@@ -763,6 +764,7 @@
         translate_transform(group_id, transform, codefo, 'COORD_')
         pass
 
+    mock_sn = 0
     translate_style(group, group_id, codefo, doc, 'GROUP_')
     for node in group.childNodes:
         if node.namespaceURI != svgns: