jzbrooks / vgo

vector graphic optimization
MIT License
39 stars 1 forks source link

Worthless move command appears after optimization #33

Closed jzbrooks closed 3 years ago

jzbrooks commented 3 years ago

Describe the bug Optimizing the following path results in a worthless command at the end (m0,0).

<path android:fillColor="#FFFFFF" android:pathData="M19.8672,5.332C20.6758,5.332 21.332,5.9805 21.332,6.7773L21.332,21.2227C21.332,22.0195 20.6758,22.668 19.8672,22.668L8.1328,22.668C7.3242,22.668 6.668,22.0195 6.668,21.2227L6.668,6.7773C6.668,5.9805 7.3242,5.332 8.1328,5.332ZM18.668,8L9.332,8L9.332,20L18.668,20ZM16,1.332L16,4L5.332,4L5.332,17.332L2.668,17.332L2.668,2.668C2.668,1.9297 3.2617,1.332 4,1.332ZM16,1.332"/>