diff --git a/src/Gui/ViewProviderCoordinateSystem.cpp b/src/Gui/ViewProviderCoordinateSystem.cpp index f5b7c3f1cc..5541779578 100644 --- a/src/Gui/ViewProviderCoordinateSystem.cpp +++ b/src/Gui/ViewProviderCoordinateSystem.cpp @@ -227,7 +227,7 @@ bool ViewProviderCoordinateSystem::onDelete(const std::vector &) return false; } - if (lcs && !lcs->getInList().empty()) { + if (lcs->is() && !lcs->getInList().empty()) { // Do not allow deletion of origin objects that are not lost. return false; }