From: nds Date: Thu, 29 Jan 2015 12:39:29 +0000 (+0300) Subject: Issue #389 Undo/redo problem on sketch line creation X-Git-Tag: V_1.0.0~13^2~7^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=75e68c6f8a1de4ad94c3466a7b364c8c9a6a59a6;p=modules%2Fshaper.git Issue #389 Undo/redo problem on sketch line creation Undoes the modification according to the previous commit. The modifications are purposed to one erroneous case. The previous fix is more correct. --- diff --git a/src/ModuleBase/ModuleBase_Operation.cpp b/src/ModuleBase/ModuleBase_Operation.cpp index 3b799f668..96060b463 100644 --- a/src/ModuleBase/ModuleBase_Operation.cpp +++ b/src/ModuleBase/ModuleBase_Operation.cpp @@ -131,20 +131,6 @@ bool ModuleBase_Operation::hasObject(ObjectPtr theObj) const if (theObj == (*aIt)) return true; } - CompositeFeaturePtr aCompFeature = std::dynamic_pointer_cast(aFeature); - if (aCompFeature.get() != NULL) { - for (int i = 0; i < aCompFeature->numberOfSubs(); i++) { - FeaturePtr aSubFeature = aCompFeature->subFeature(i); - std::list aResults = aSubFeature->results(); - std::list::const_iterator aIt; - for (aIt = aResults.begin(); aIt != aResults.end(); ++aIt) { - if (theObj == (*aIt)) - return true; - } - if (aSubFeature == theObj) - return true; - } - } } return false; }