Showing/hiding control points require recalculation scene size.

(grafted from 6f9642ea3c32ce5a333fa85339fd761aa992acc6)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-01-15 14:57:41 +02:00
parent 3026f9dfc6
commit aadac5772d

View File

@ -133,6 +133,11 @@ inline void VAbstractSpline::ShowToolVisualization(bool show)
{ {
ShowHandles(show); ShowHandles(show);
} }
if (scene())
{ // Showing/hiding control points require recalculation scene size.
VMainGraphicsView::NewSceneRect(scene(), qApp->getSceneView());
}
} }
#endif // VABSTRACTSPLINE_H #endif // VABSTRACTSPLINE_H