]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2674 : Fatal error when undo remove part
authormpv <mpv@opencascade.com>
Thu, 4 Oct 2018 12:12:28 +0000 (15:12 +0300)
committermpv <mpv@opencascade.com>
Thu, 4 Oct 2018 12:12:58 +0000 (15:12 +0300)
src/Model/Model_Objects.cpp
src/Model/Model_ResultConstruction.cpp

index 505a8a81208a6efddda704d65100edbbe8a5c532..35d3eaf1d160d7892ebfa49342b474268f321337 100644 (file)
@@ -364,7 +364,7 @@ void Model_Objects::eraseAllFeatures()
   }
   kCreator->sendDeleted(myDoc, ModelAPI_Feature::group());
   myFeatures.Clear(); // just remove features without modification of DS
-  updateHistory(ModelAPI_Feature::group());
+  myHistory.clear();
 }
 
 void Model_Objects::moveFeature(FeaturePtr theMoved, FeaturePtr theAfterThis)
index 432f56b13191571d6ed1e14277ec4e6c6a5da052..9b2520a4576305053311dc0fec09a3589e8cc544 100644 (file)
@@ -500,7 +500,8 @@ int Model_ResultConstruction::select(const std::shared_ptr<GeomAPI_Shape>& theSu
   TopAbs_ShapeEnum aShapeType = aSubShape.ShapeType();
   TDataStd_Integer::Set(aLab, (int)aShapeType);
   gp_Pnt aVertexPos;
-  TColStd_MapOfTransient allCurves; // curves of the sketc hsub-elements are used, so, edges are not equal
+  // curves of the sketch sub-elements are used, so, edges are not equal
+  TColStd_MapOfTransient allCurves;
   if (aShapeType == TopAbs_VERTEX) { // compare positions
     aVertexPos = BRep_Tool::Pnt(TopoDS::Vertex(aSubShape));
   } else {