mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 12:58:55 +00:00
🐛 Fix wrong extremity point in calculate-extremities for line-to
In the :line-to branch of calculate-extremities, move-p (the subpath start point) was being added to the extremities set instead of from-p (the actual previous point). For all line segments beyond the first one in a subpath this produced an incorrect bounding-box start point. The :curve-to branch correctly used from-p; align :line-to to match. Signed-off-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
30931839b5
commit
caac452cd4
@ -812,7 +812,7 @@
|
|||||||
:line-to
|
:line-to
|
||||||
(recur (cond-> points
|
(recur (cond-> points
|
||||||
(and from-p to-p)
|
(and from-p to-p)
|
||||||
(-> (conj! move-p)
|
(-> (conj! from-p)
|
||||||
(conj! to-p)))
|
(conj! to-p)))
|
||||||
(not-empty (subvec content 1))
|
(not-empty (subvec content 1))
|
||||||
to-p
|
to-p
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user