X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ContextMenuMgr.cpp;h=00cf24153ffbe8d7edd5e460e3d74bbe0ab5b0de;hb=8d04b5f4360b23cf376beff9c5e7c12d0e6a5f1e;hp=b1fadf67129ea2d66fb6b1571a25d16c88ff4c46;hpb=d165b06723a6703ac10ca94f5800f8168379a3ad;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index b1fadf671..00cf24153 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -508,6 +508,8 @@ void XGUI_ContextMenuMgr::updateViewerMenu() ObjectPtr aObject; foreach(ModuleBase_ViewerPrsPtr aPrs, aPrsList) { aObject = aPrs->object(); + if (!aObject.get()) + continue; GeomShapePtr aShape = aPrs->shape(); if (aObject->isDisplayed()) { isVisible = true;