diff options
| author | Mike Pittman <thepittos@yahoo.com.au> | 2008-05-19 16:28:00 +0000 |
|---|---|---|
| committer | ozmikepittman <ozmikepittman@users.sourceforge.net> | 2008-05-19 16:28:00 +0000 |
| commit | 6289d4fe3adb5aa45870b38db56b061e688ff411 (patch) | |
| tree | 425cfbbc25a7ad1473a720d7365051bcf1c09bf6 /share/extensions/triangle.py | |
| parent | Add possibility to let the 'tangent' have a fixed angle relative to the curve (diff) | |
| download | inkscape-6289d4fe3adb5aa45870b38db56b061e688ff411.tar.gz inkscape-6289d4fe3adb5aa45870b38db56b061e688ff411.zip | |
Applying several of Inductiveload's enhancements and fixes to his extensions. See LP #230478.
(bzr r5710)
Diffstat (limited to 'share/extensions/triangle.py')
| -rw-r--r-- | share/extensions/triangle.py | 5 |
1 files changed, 3 insertions, 2 deletions
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() + |
