diff --git a/src/libs/vwidgets/vmaingraphicsscene.cpp b/src/libs/vwidgets/vmaingraphicsscene.cpp index f8928304e..7300f1814 100644 --- a/src/libs/vwidgets/vmaingraphicsscene.cpp +++ b/src/libs/vwidgets/vmaingraphicsscene.cpp @@ -211,7 +211,10 @@ void VMainGraphicsScene::SetOriginsVisible(bool visible) { for (auto item : qAsConst(origins)) { - item->setVisible(visible); + if (item) + { + item->setVisible(visible); + } } }