From 6289d4fe3adb5aa45870b38db56b061e688ff411 Mon Sep 17 00:00:00 2001 From: Mike Pittman Date: Mon, 19 May 2008 16:28:00 +0000 Subject: Applying several of Inductiveload's enhancements and fixes to his extensions. See LP #230478. (bzr r5710) --- share/extensions/triangle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'share/extensions/triangle.py') diff --git a/share/extensions/triangle.py b/share/extensions/triangle.py index 22c8633f0..a50904b3f 100644 --- a/share/extensions/triangle.py +++ b/share/extensions/triangle.py @@ -30,7 +30,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -''' +''' import inkex import simplestyle, sys @@ -39,7 +39,7 @@ from math import * def draw_SVG_tri( (x1, y1), (x2, y2), (x3, y3), (ox,oy), width, name, parent): style = { 'stroke': '#000000', 'stroke-width':str(width), 'fill': 'none' } tri_attribs = {'style':simplestyle.formatStyle(style), - 'inkscape:label':name, + inkex.addNS('label','inkscape'):name, 'd':'M '+str(x1+ox)+','+str(y1+oy)+ ' L '+str(x2+ox)+','+str(y2+oy)+ ' L '+str(x3+ox)+','+str(y3+oy)+ @@ -192,3 +192,4 @@ class Grid_Polar(inkex.Effect): e = Grid_Polar() e.affect() + -- cgit v1.2.3