mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 15:57:49 +00:00
Dragging out a dimension from a segment (Linear) or a corner (Angular) drew its first preview frame at the wrong distance. The preview placed the dimension at the pointer before reading the segment's end points or the corner from the art, and measured the offset from the placeholder points the dimension starts with. A drag from the top edge of a rectangle to 40 pt above it showed an offset of 60 instead of -40. The preview now clears the offset, reads the art's points, places the dimension at the pointer and checks the result. Clearing the offset keeps an out-of-range offset from the last pointer position from failing the read. Tests: the segment and corner drag-out tests fail without the change. placement_recovers_after_a_position_out_of_range also passes on main; it fails when only the offset clear is removed.