maoschanz / drawing

Simple image editor for Linux
https://maoschanz.github.io/drawing/
GNU General Public License v3.0
784 stars 101 forks source link

Fix scaling while preserving proportions #647

Open ARAKHN1D opened 5 months ago

ARAKHN1D commented 5 months ago

This fixes issues with preserving proportions when editing the dimensions with the SpinButtons. The problem was that the ratio that was being used was based on what the SpinButtons were changed to, rather than what they were originally. This caused things such as only the width changing. I tried to account for all possible interactions with the scale tool, but there might still be bugs if I didn't find them all.

This could also potentially close the issue #609. That one has a very similar issue to #637, but it doesn't mention the SpinButtons specifically, so it could be something else.

Closes #637