diff options
| author | Alvin Penner <penner@vaxxine.com> | 2013-11-11 21:30:38 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2013-11-11 21:30:38 +0000 |
| commit | a2ff4f311743bf5dc3ace8f60d0969f92ace6a2d (patch) | |
| tree | 1c0aa1f92294fe8b00730ccb35dc3b1a403f8f10 | |
| parent | Fix for Bug #1249390 (filter with feImage with empty href crashes inkscape). (diff) | |
| download | inkscape-a2ff4f311743bf5dc3ace8f60d0969f92ace6a2d.tar.gz inkscape-a2ff4f311743bf5dc3ace8f60d0969f92ace6a2d.zip | |
extensions. dxf output. do not output arc where start = end (Bug 1248104)
Fixed bugs:
- https://launchpad.net/bugs/1248104
(bzr r12791)
| -rwxr-xr-x | share/extensions/cubicsuperpath.py | 4 |
1 files 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) |
