Normalize the bounding rect, so that its height is non negative if the y

axis has been turned upside down.
This commit is contained in:
Laurent Rineau 2008-10-15 15:17:12 +00:00
parent 2cbb027eb3
commit fa27da4d5c
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ QRectF viewportsBbox(const QGraphicsScene* scene) {
{
rect |= mapToScene(view, view->viewport()->rect());
}
rect = rect.normalized();
return rect;
}