mirror of https://github.com/CGAL/cgal
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:
parent
2cbb027eb3
commit
fa27da4d5c
|
|
@ -41,6 +41,7 @@ QRectF viewportsBbox(const QGraphicsScene* scene) {
|
||||||
{
|
{
|
||||||
rect |= mapToScene(view, view->viewport()->rect());
|
rect |= mapToScene(view, view->viewport()->rect());
|
||||||
}
|
}
|
||||||
|
rect = rect.normalized();
|
||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue