]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for delete operation
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 20 May 2015 13:55:00 +0000 (16:55 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 20 May 2015 13:55:00 +0000 (16:55 +0300)
src/PartSet/PartSet_Module.cpp

index bb7c17e30ba51dda841546214d124e816507f806..0805038bd960e3c74827309b21bce0ba632e0e14 100644 (file)
@@ -508,7 +508,7 @@ bool PartSet_Module::deleteObjects()
   ModuleBase_Operation* anOperation = myWorkshop->currentOperation();
   bool isSketchOp = PartSet_SketcherMgr::isSketchOperation(anOperation),
        isNestedOp = PartSet_SketcherMgr::isNestedSketchOperation(anOperation);
-  if (isSketchOp && isNestedOp) {
+  if (isSketchOp || isNestedOp) {
     // 2. find selected presentations
     // selected objects should be collected before the current operation abort because
     // the abort leads to selection lost on constraint objects. It can be corrected after #386 issue