diff options
author | Michael Schwarz <michi.schwarz@gmail.com> | 2014-12-06 13:36:55 +0100 |
---|---|---|
committer | Michael Schwarz <michi.schwarz@gmail.com> | 2014-12-20 21:12:50 +0100 |
commit | 30487e03f4fedfc531252246796bb11c48e635da (patch) | |
tree | 5abb0a5148ea24e9d75ce7699bfd776090a3703b /support/dxf_export/cubicsuperpath.py | |
parent | b69003800917a93c5c2b240ede6f83b80f1095cc (diff) | |
download | pogojig-30487e03f4fedfc531252246796bb11c48e635da.tar.gz pogojig-30487e03f4fedfc531252246796bb11c48e635da.tar.bz2 pogojig-30487e03f4fedfc531252246796bb11c48e635da.zip |
Upgraded Python files copied from the Inkscape distribution to those from version 0.91.99.13724.
Diffstat (limited to 'support/dxf_export/cubicsuperpath.py')
-rwxr-xr-x | support/dxf_export/cubicsuperpath.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |