From fa27da4d5c1858e181fd492044d78c7fdabb8650 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 15 Oct 2008 15:17:12 +0000 Subject: [PATCH] Normalize the bounding rect, so that its height is non negative if the y axis has been turned upside down. --- GraphicsView/src/CGALQt4/utility.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/GraphicsView/src/CGALQt4/utility.cpp b/GraphicsView/src/CGALQt4/utility.cpp index d9ec6c6b20c..417e205e059 100644 --- a/GraphicsView/src/CGALQt4/utility.cpp +++ b/GraphicsView/src/CGALQt4/utility.cpp @@ -41,6 +41,7 @@ QRectF viewportsBbox(const QGraphicsScene* scene) { { rect |= mapToScene(view, view->viewport()->rect()); } + rect = rect.normalized(); return rect; }