Improve snap to grid for line, ellipse, and rectangle (fix #1500)

This commit is contained in:
David Capello 2017-06-29 15:33:12 -03:00
parent 7072ecebe3
commit 7690cedcbe

View File

@ -180,8 +180,7 @@ public:
// Adjust points for selection like tools (so we can select tiles)
if (loop->getController()->canSnapToGrid() &&
loop->getSnapToGrid() &&
loop->getInk()->isSelection()) {
loop->getSnapToGrid()) {
if (stroke[0].x < stroke[1].x)
stroke[1].x--;
else if (stroke[0].x > stroke[1].x)