diff options
| author | Alvin Penner <penner@vaxxine.com> | 2010-04-11 19:22:02 +0000 |
|---|---|---|
| committer | Alvin Penner <penner@vaxxine.com> | 2010-04-11 19:22:02 +0000 |
| commit | c9512062e43089b6f080b4933d906cac531e7953 (patch) | |
| tree | f0481cdc275456b923ad5984c2e35a5e803ae85d /share | |
| parent | UI inconsistency fix (Preferences>Interface. (diff) | |
| download | inkscape-c9512062e43089b6f080b4933d906cac531e7953.tar.gz inkscape-c9512062e43089b6f080b4933d906cac531e7953.zip | |
fix some typing errors when converting from quadratic to cubic Bezier
(bzr r9315)
Diffstat (limited to 'share')
| -rwxr-xr-x | share/extensions/cubicsuperpath.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/share/extensions/cubicsuperpath.py b/share/extensions/cubicsuperpath.py index ae9c308e1..af61acb3a 100755 --- a/share/extensions/cubicsuperpath.py +++ b/share/extensions/cubicsuperpath.py @@ -123,17 +123,17 @@ def CubicSuperPath(simplepath): lastctrl = params[2:4] elif cmd == 'Q': q0=last[:] - q1=params[0:1] - q2=params[2:3] - x0= q0[0] - x1=1/3*q0[0]+2/3*q1[0] - x2= 2/3*q1[0]+1/3*q2[0] - x3= q2[0] - y0= q0[1] - y1=1/3*q0[1]+2/3*q1[1] - y2= 2/3*q1[1]+1/3*q2[1] - y3= q2[1] - csp[subpath].append([lastctrl[:][x0,y0][x1,y1]]) + q1=params[0:2] + q2=params[2:4] + x0= q0[0] + x1=1./3*q0[0]+2./3*q1[0] + x2= 2./3*q1[0]+1./3*q2[0] + x3= q2[0] + y0= q0[1] + y1=1./3*q0[1]+2./3*q1[1] + y2= 2./3*q1[1]+1./3*q2[1] + y3= q2[1] + csp[subpath].append([lastctrl[:],[x0,y0],[x1,y1]]) last = [x3,y3] lastctrl = [x2,y2] elif cmd == 'A': |
