Remove extra pixel when cropping with an aspect ratio
Summary:
This fixes a bug where using the crop tool and resizing the crop
area by adjusting the top left or top right corners with a fixed
aspect ratio will make the crop area's height a pixel higher than
expected. This is because QRect::bottom() doesn't return the
exact y coordinate.
From Qt Documentation: https://doc.qt.io/qt-5/qrect.html#bottom
Test Plan:
- Use the crop tool with a 1:1 aspect ratio
- Change the crop area by adjusting the top left and top right corners
- Verify both width and height have the same value
Reviewers: Gwenview, ngraham
Reviewed By: Gwenview, ngraham
Subscribers: anthonyfieroni
Tags: Gwenview
Differential Revision: https://phabricator.kde.org/D24290