]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #856: "show parent feature" should be available only on result bodies
authorasl <asl@opencascade.com>
Tue, 18 Aug 2015 09:18:16 +0000 (12:18 +0300)
committerasl <asl@opencascade.com>
Tue, 18 Aug 2015 11:40:30 +0000 (14:40 +0300)
src/PartSet/PartSet_Module.cpp

index 8541f89227403eee0f313f4183051c103262ed18..c4410ee7514d49f9a49c225547aab1708d9b9ec3 100644 (file)
@@ -47,6 +47,7 @@
 #include <ModelAPI_Data.h>
 #include <ModelAPI_Session.h>
 #include <ModelAPI_ShapeValidator.h>
+#include <ModelAPI_ResultBody.h>
 
 #include <GeomDataAPI_Point2D.h>
 #include <GeomDataAPI_Point.h>
@@ -830,7 +831,7 @@ void PartSet_Module::addObjectBrowserMenu(QMenu* theMenu) const
           theMenu->addAction(myMenuMgr->action("EDIT_CMD"));
       }
 
-      ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(aObject);
+      ResultBodyPtr aResult = std::dynamic_pointer_cast<ModelAPI_ResultBody>(aObject);
       if( aResult.get() )
       {
         theMenu->addAction(myMenuMgr->action("SELECT_PARENT_CMD"));