Check pointers.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-02-25 20:12:15 +02:00
parent 9c1972ede2
commit cdeddbfa1e

View File

@ -117,6 +117,9 @@ VAbstractTool::~VAbstractTool()
*/ */
void VAbstractTool::NewSceneRect(QGraphicsScene *sc, QGraphicsView *view) void VAbstractTool::NewSceneRect(QGraphicsScene *sc, QGraphicsView *view)
{ {
SCASSERT(sc != nullptr);
SCASSERT(view != nullptr);
QRectF rect = sc->itemsBoundingRect(); QRectF rect = sc->itemsBoundingRect();
QRect rec0 = view->rect(); QRect rec0 = view->rect();