Try to fix flowing of drawing.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-12-04 21:49:00 +02:00
parent dc25101d78
commit 6de8a44314

View File

@ -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