vcl/inc/qt5/Qt5Tools.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fcafc74f883f193a10c8be4eaa3c4ec7ed826f94 Author: Katarina Behrens <katarina.behr...@cib.de> Date: Fri Jul 6 15:39:54 2018 +0200 It's top-left-right-bottom, not top-left-width-height yeh tools::Rect class is odd Change-Id: I5a49a2e8f35647029bb584903fee7b2245367af1 diff --git a/vcl/inc/qt5/Qt5Tools.hxx b/vcl/inc/qt5/Qt5Tools.hxx index f075468ca3d3..c919b401e191 100644 --- a/vcl/inc/qt5/Qt5Tools.hxx +++ b/vcl/inc/qt5/Qt5Tools.hxx @@ -49,7 +49,7 @@ inline QRect toQRect(const tools::Rectangle& rRect) inline tools::Rectangle toRectangle(const QRect& rRect) { - return tools::Rectangle(rRect.left(), rRect.top(), rRect.width(), rRect.height()); + return tools::Rectangle(rRect.left(), rRect.top(), rRect.right(), rRect.bottom()); } inline QSize toQSize(const Size& rSize) { return QSize(rSize.Width(), rSize.Height()); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits