From a2ff4f311743bf5dc3ace8f60d0969f92ace6a2d Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Mon, 11 Nov 2013 16:30:38 -0500 Subject: extensions. dxf output. do not output arc where start = end (Bug 1248104) Fixed bugs: - https://launchpad.net/bugs/1248104 (bzr r12791) --- share/extensions/cubicsuperpath.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/extensions/cubicsuperpath.py b/share/extensions/cubicsuperpath.py index da46f8080..925efdb04 100755 --- a/share/extensions/cubicsuperpath.py +++ b/share/extensions/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) -- cgit v1.2.3