Fix app crash.

This commit is contained in:
Roman Telezhynskyi 2023-07-24 17:51:55 +03:00
parent cb4741acc9
commit 55ba30e785

View file

@ -2012,7 +2012,10 @@ void VPMainWindow::SheetPaperSizeChanged()
}
}
VMainGraphicsView::NewSceneRect(m_graphicsView->scene(), m_graphicsView);
if (m_graphicsView->scene() != nullptr)
{
VMainGraphicsView::NewSceneRect(m_graphicsView->scene(), m_graphicsView);
}
}
//---------------------------------------------------------------------------------------------------------------------