Bug 347798

Summary: Toggling Erase Mode truncates the decimal part of the brush size
Product: [Applications] krita Reporter: Eiko Yumi <esdouzewa>
Component: Brush enginesAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: freebox64, romuluspb
Priority: NOR    
Version: 2.9.4   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eiko Yumi 2015-05-16 14:43:14 UTC
Id.

Reproducible: Always

Steps to Reproduce:
1. Select any brush
2. Choose a non-integer brush size with shift+LMB drag on the canvas
3. Toggle Erase Mode on/off (E key)

Actual Results:  
The decimal part of the brush size gets truncated.

Expected Results:  
Either of these should happen:
1) Brush size is rounded to the nearest integer;
2) Brush size is unchanged.
The second option would be best.

Using Windows 10 64bit TP b10074
Comment 1 mvowada 2015-05-18 11:16:22 UTC
Yes, I can confirm - (Ubuntu 14.04 - Krita: 2.9.4 (git f6b201a)
Comment 2 mvowada 2015-05-28 13:21:58 UTC
*** Bug 348361 has been marked as a duplicate of this bug. ***
Comment 3 Halla Rempt 2015-08-14 09:58:36 UTC
Git commit c5d30bd41f834aee3a56002fa6f4c54a2d043dd4 by Boudewijn Rempt.
Committed on 14/08/2015 at 09:22.
Pushed by rempt into branch 'calligra/2.9'.

Patch by Alexey Elnatanov. Thanks!
CCMAIL: invalpoint@gmail.com

M  +2    -2    krita/ui/kis_paintop_box.cc
M  +2    -2    krita/ui/kis_paintop_box.h

http://commits.kde.org/calligra/c5d30bd41f834aee3a56002fa6f4c54a2d043dd4