Minor change to actually cover the case where a line segment doe not point into the same direction.

Also increases coverage by explicitly optimizing a lineto command (instead of only "implicit lineto", i.e. effectively moveto, commands)
This commit is contained in:
Eduard Braun 2017-05-18 00:38:16 +02:00
parent 44cd072e37
commit df3a3ccc5b
2 changed files with 4 additions and 3 deletions

View file

@ -1240,7 +1240,7 @@ class CollapseStraightPathSegments(unittest.TestCase):
'm0 0h10 20',
'm0 0h10 20',
'm0 0h10 20',
'm0 0 20 40',
'm0 0 20 40v1l10 20',
'm0 0 10 10-20-20 10 10-20-20',
'm0 0 1 2m1 2 2 4m1 2 2 4',
'm6.3228 7.1547 81.198 45.258']