From: asl Date: Tue, 18 Aug 2015 09:18:16 +0000 (+0300) Subject: Issue #856: "show parent feature" should be available only on result bodies X-Git-Tag: V_1.4.0_beta4~361 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=69ff21c1bc1af665be9419918f64f5a7d1878cbd;p=modules%2Fshaper.git Issue #856: "show parent feature" should be available only on result bodies --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 8541f8922..c4410ee75 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include @@ -830,7 +831,7 @@ void PartSet_Module::addObjectBrowserMenu(QMenu* theMenu) const theMenu->addAction(myMenuMgr->action("EDIT_CMD")); } - ResultPtr aResult = std::dynamic_pointer_cast(aObject); + ResultBodyPtr aResult = std::dynamic_pointer_cast(aObject); if( aResult.get() ) { theMenu->addAction(myMenuMgr->action("SELECT_PARENT_CMD"));