Skip to content

(5.0) Fix setting of minimum fuzziness on contiguous select tool

R. B. requested to merge tomtomtom/krita:tomtomtom/fixminfuzziness into krita/5.0

There is a bug in 5.0 (but seemingly not in master) where the contiguous selection tool acts likes its fuzziness is actually set to 20, in the case of the user leaving it set to 1 in a previous session. This commit ports in a bit of code from master that resolves this issue.

Test Plan

BUG: 447524

Observe the sizes of the region selections after starting Krita when contiguous selection fuzziness is set to 1 and other values. Quick way to verify this is to create a gradient and then select with the tool.

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.

Merge request reports

Loading