]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #389 Undo/redo problem on sketch line creation
authornds <natalia.donis@opencascade.com>
Thu, 29 Jan 2015 12:39:29 +0000 (15:39 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 29 Jan 2015 12:39:29 +0000 (15:39 +0300)
Undoes the modification according to the previous commit. The modifications are purposed to one erroneous case. The previous fix is more correct.

src/ModuleBase/ModuleBase_Operation.cpp

index 3b799f6689042bbb207297df4e76c9eaf8ec0732..96060b463837050075cb47244ca5f19fe8fabb13 100644 (file)
@@ -131,20 +131,6 @@ bool ModuleBase_Operation::hasObject(ObjectPtr theObj) const
       if (theObj == (*aIt))
         return true;
     }
-    CompositeFeaturePtr aCompFeature = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(aFeature);
-    if (aCompFeature.get() != NULL) {
-      for (int i = 0; i < aCompFeature->numberOfSubs(); i++) {
-        FeaturePtr aSubFeature = aCompFeature->subFeature(i);
-        std::list<ResultPtr> aResults = aSubFeature->results();
-        std::list<ResultPtr>::const_iterator aIt;
-        for (aIt = aResults.begin(); aIt != aResults.end(); ++aIt) {
-          if (theObj == (*aIt))
-            return true;
-        }
-        if (aSubFeature == theObj)
-          return true;
-      }
-    }
   }
   return false;
 }