diff --git a/GUI/View/Scene/MaskGraphicsScene.cpp b/GUI/View/Scene/MaskGraphicsScene.cpp index 084fafbb901259f963a7681be479e7fdbff77aec..d57897b93bf107876ee1f34239d0feb0e1585161 100644 --- a/GUI/View/Scene/MaskGraphicsScene.cpp +++ b/GUI/View/Scene/MaskGraphicsScene.cpp @@ -206,7 +206,8 @@ void MaskGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) void MaskGraphicsScene::drawForeground(QPainter* painter, const QRectF&) { - ASSERT(m_plot); + if (!m_plot) + return; if (m_mouse_position == QPointF()) return;