]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
The sketch feature can be edited only in the active part. Otherwise the following...
authornds <natalia.donis@opencascade.com>
Mon, 2 Feb 2015 07:17:16 +0000 (10:17 +0300)
committernds <natalia.donis@opencascade.com>
Mon, 2 Feb 2015 07:17:16 +0000 (10:17 +0300)
Create Sketch, create a line, apply, create a part, edit the sketch, create a lenght constraint, result is crash.

src/XGUI/XGUI_ContextMenuMgr.cpp

index dcde2a6b592a2bc710f42505b8e96983b26fd3d7..cf481949f15cb98174ad0e305f2e7b8ebbbfbc18 100644 (file)
@@ -145,7 +145,7 @@ QMenu* XGUI_ContextMenuMgr::objectBrowserMenu() const
             aMenu->addAction(action("DEACTIVATE_PART_CMD"));
           else
             aMenu->addAction(action("ACTIVATE_PART_CMD"));
-        } else if (hasFeature) {
+        } else if (hasFeature && aObject->document() == aMgr->activeDocument()) {
           aMenu->addAction(action("EDIT_CMD"));
         } else {
           if (aDisplayer->isVisible(aObject)) {