mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
update-rect with :size type was only updating :x2 and :y2 but not :x1 and :y1, leaving the Rect record in an inconsistent state (x1/y1 would not match x/y). Aligned its behaviour with update-rect! which correctly updates all four corner fields. corners->rect was calling unqualified abs which is not imported in app.common.geom.rect namespace. Replaced with mth/abs which is the proper namespaced version already available in the ns require. Signed-off-by: Andrey Antukh <niwi@niwi.nz>