From df576d3f68e1f22c9254dbb35811ba706cb865b9 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 19 Jan 2014 09:49:17 -0200 Subject: [PATCH] Draft: fixed small bug in bezier-to-svg code --- src/Mod/Draft/Draft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index e9051fd709..13e7147d6c 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1541,7 +1541,7 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct bspline=bspline.approximateBSpline(0.05,20, 3,'C0') except RuntimeError: print "Debug: unable to approximate bspline" - elif bspline.Degree <= 3 and not bspline.isRational(): + if bspline.Degree <= 3 and not bspline.isRational(): for bezierseg in bspline.toBezier(): if bezierseg.Degree>3: #should not happen raise AssertionError