From 6de8a443144b480620eff2a5a27ca0aeefa72b7a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 4 Dec 2015 21:49:00 +0200 Subject: [PATCH] Try to fix flowing of drawing. --HG-- branch : develop --- src/libs/vwidgets/vmaingraphicsview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vwidgets/vmaingraphicsview.cpp b/src/libs/vwidgets/vmaingraphicsview.cpp index 0bac5bdd3..0e16d8b9d 100644 --- a/src/libs/vwidgets/vmaingraphicsview.cpp +++ b/src/libs/vwidgets/vmaingraphicsview.cpp @@ -352,7 +352,7 @@ void VMainGraphicsView::NewSceneRect(QGraphicsScene *sc, QGraphicsView *view) //Calculate view rect //to receive the currently visible area, map the widgets bounds to the scene const QPointF a = view->mapToScene(0, 0 ); - const QPointF b = view->mapToScene(view->viewport()->width(), view->viewport()->height()); + const QPointF b = view->mapToScene(view->width(), view->height()); const QRectF viewRect = QRectF( a, b ); //Calculate scene rect