summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2010-04-11 19:22:02 +0000
committerAlvin Penner <penner@vaxxine.com>2010-04-11 19:22:02 +0000
commitc9512062e43089b6f080b4933d906cac531e7953 (patch)
treef0481cdc275456b923ad5984c2e35a5e803ae85d /share
parentUI inconsistency fix (Preferences>Interface. (diff)
downloadinkscape-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-xshare/extensions/cubicsuperpath.py22
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':