From 30487e03f4fedfc531252246796bb11c48e635da Mon Sep 17 00:00:00 2001 From: Michael Schwarz Date: Sat, 6 Dec 2014 13:36:55 +0100 Subject: Upgraded Python files copied from the Inkscape distribution to those from version 0.91.99.13724. --- support/dxf_export/cubicsuperpath.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'support/dxf_export/cubicsuperpath.py') diff --git a/support/dxf_export/cubicsuperpath.py b/support/dxf_export/cubicsuperpath.py index af61acb..925efdb 100755 --- a/support/dxf_export/cubicsuperpath.py +++ b/support/dxf_export/cubicsuperpath.py @@ -46,8 +46,8 @@ def ArcToPath(p1,params): rx,ry,teta,longflag,sweepflag,x2,y2=params[:] teta = teta*pi/180.0 B=[x2,y2] - if rx==0 or ry==0: - return([[A,A,A],[B,B,B]]) + if rx==0 or ry==0 or A==B: + return([[A[:],A[:],A[:]],[B[:],B[:],B[:]]]) mat=matprod((rotmat(teta),[[1/rx,0],[0,1/ry]],rotmat(-teta))) applymat(mat, A) applymat(mat, B) @@ -166,4 +166,4 @@ def formatPath(p): return simplepath.formatPath(unCubicSuperPath(p)) -# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99 +# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99 -- cgit