Draft: fixed small bug in bezier-to-svg code

This commit is contained in:
Yorik van Havre 2014-01-19 09:49:17 -02:00
parent cf1e4ecd4f
commit 4a8b5cc60e

View File

@ -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