Salome HOME
Fixed the crash on selection of sketch in PartSet
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 11 Nov 2014 09:28:36 +0000 (12:28 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Tue, 11 Nov 2014 09:28:36 +0000 (12:28 +0300)
src/ModuleBase/ModuleBase_ViewerFilters.cpp

index c18fd0eaee48ff5041442082755b10f51ea28e5f..1d17c685915bf7e4e47b66f1270816345d4c21a0 100644 (file)
@@ -37,7 +37,7 @@ Standard_Boolean ModuleBase_ShapeDocumentFilter::IsOk(const Handle(SelectMgr_Ent
       if (aObj) {
         DocumentPtr aDoc = aObj->document();
         SessionPtr aMgr = ModelAPI_Session::get();
-        return (aDoc == aMgr->activeDocument()) || (aDoc == aMgr->moduleDocument());
+        return (aDoc == aMgr->activeDocument() /* MPV: for the current moment selection in other document is not possible || (aDoc == aMgr->moduleDocument()*/);
       }
     }
   }