Bug 447871

Summary: Snap to the grid does not work
Product: [Applications] krita Reporter: romopua
Component: Tools/SelectionAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: ahab.greybeard
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Notice that the selection box is not affected by the "snap to the grid" option

Description romopua 2022-01-03 10:07:52 UTC
Created attachment 145072 [details]
Notice that the selection box is not affected by the "snap to the grid" option

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. Create a 1280x720 canvas
2. Show the grid in 32x32 and active snap to the grid
3. Select the "selection" tool
4. Check that the check box does not snap to the grid
OBSERVED RESULT
The check box is not magnetized in the closest grid

EXPECTED RESULT
The selection box must be magnetized towards the nearest grid

SOFTWARE/OS VERSIONS
Windows: 10 64bits
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Ahab Greybeard 2022-01-03 15:32:24 UTC
The 'geometric' selection tools do snap to the grid but you have to check in 'View -> Snap To' to make sure that only 'Snap To Grid' is enabled.
If you have 'Snap Pixel' enabled then it will snap to everywhere.
Is only 'Snap To Grid' enabled?
Comment 2 romopua 2022-01-03 16:05:54 UTC
Ahh, so disabling "snap to pixel" seems to fix the problem.
Comment 3 Ahab Greybeard 2022-01-03 16:18:38 UTC
Oh good :)