Check pointers.
--HG-- branch : develop
This commit is contained in:
parent
9c1972ede2
commit
cdeddbfa1e
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user