From da3c9f1d985f109ffe649421f5466348aa19b834 Mon Sep 17 00:00:00 2001 From: Louis Simard Date: Mon, 7 Feb 2011 13:48:15 -0500 Subject: [PATCH] =?UTF-8?q?Apply=20a=20fix=20by=20Jan=20Thor=20to=20bug=20?= =?UTF-8?q?714717,=20whereby=20Scour=20wrongly=20optimises=20away=20"0-len?= =?UTF-8?q?gth"=20B=C3=A9zier=20curves=20if=20they=20have=20non-zero=20con?= =?UTF-8?q?trol=20points=20that=20actually=20create=20a=20curve.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scour.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scour.py b/scour.py index c41f8fd..d009c0a 100755 --- a/scour.py +++ b/scour.py @@ -1680,7 +1680,7 @@ def cleanPath(element, options) : i += 2 elif cmd == 'c': while i < len(data): - if data[i+4] == data[i+5] == 0: + if data[i] == data[i+1] == data[i+2] == data[i+3] == data[i+4] == data[i+5] == 0: del data[i:i+6] numPathSegmentsReduced += 1 else: @@ -1694,7 +1694,7 @@ def cleanPath(element, options) : i += 7 elif cmd == 'q': while i < len(data): - if data[i+2] == data[i+3] == 0: + if data[i] == data[i+1] == data[i+2] == data[i+3] == 0: del data[i:i+4] numPathSegmentsReduced += 1 else: