Bug 347798 - Toggling Erase Mode truncates the decimal part of the brush size
Summary: Toggling Erase Mode truncates the decimal part of the brush size
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Brush engines (show other bugs)
Version: 2.9.4
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 348361 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-16 14:43 UTC by Eiko Yumi
Modified: 2015-08-14 09:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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