mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-02 08:24:14 +02:00
5381d05d5d
Resizing a selection in the element editor down to zero width or height could not be undone: ScalePartsCommand scales back from the new rect, and a flat rect cannot be scaled from, so undo silently left the shapes collapsed and the flattening was saved. The same flat rect made deltaForRoundScaling() divide 0 by 0 and fill the resize rect with NaN. Never commit a resize rect with no width or height, and do not resize a selection that is already flat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>