Skip to content

Add minimum size of 1.0 to snap brush resizing

R. B. requested to merge (removed):tomtomtom-master-patch-93931 into master

This is a tiny patch to !470 (merged). It adds a minimum size of 1.0 (instead of .01) when using the Snap action of the Change Primary Setting shortcut. The original MR was introduced to fix bug 361814, for the sake of pixel art, but from what I can tell, there isn't a difference between size .01 and 1.0 in this context, and most brushes don't seem to output anything at size .01 either.

Test Plan

Add a Change Primary Setting shortcut with action Snap in the canvas input settings, and observe the behavior.

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.
Edited by R. B.

Merge request reports

Loading