Bug 461401

Summary: rectangle tools draw 1 pixel more to the right and down than the selection preview
Product: [Applications] krita Reporter: badrainbow
Component: Brush enginesAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: griffinvalley, halla
Priority: NOR    
Version First Reported In: 5.1.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: 1 more on right and bottom

Description badrainbow 2022-11-04 08:04:38 UTC
Created attachment 153450 [details]
1 more on right and bottom

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Draw rectangle
2. See preview

OBSERVED RESULT
rect on preview

EXPECTED RESULT
rect out of range preview

SOFTWARE/OS VERSIONS
Windows: 11, 10, 7


ADDITIONAL INFORMATION
Comment 1 wolthera 2023-01-11 20:17:10 UTC
This only happens if you also have "outline" set to "brush" (or "brush (background color)". At 1 pixel we have to choose a side. I'm afraid that there's no actual bug here but merely a compromise.