]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Using part's document
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 16 Jul 2014 06:01:42 +0000 (10:01 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 16 Jul 2014 06:01:42 +0000 (10:01 +0400)
src/XGUI/XGUI_ContextMenuMgr.cpp

index 21fc9672b7617e33b05e9496e34f5f650de76c51..62d3ebe62a2e4a68d760e6440ccb2996e748d9a7 100644 (file)
@@ -108,7 +108,7 @@ QMenu* XGUI_ContextMenuMgr::objectBrowserMenu() const
     if (aObject) {
       ResultPartPtr aPart = boost::dynamic_pointer_cast<ModelAPI_ResultPart>(aObject);
       if (aPart) {
-        DocumentPtr aFeaDoc = aPart->document();
+        DocumentPtr aFeaDoc = aPart->partDoc();
         if (aMgr->currentDocument() == aFeaDoc)
           aMenu->addAction(action("DEACTIVATE_PART_CMD"));
         else