From 8fad3bab7aa11e01d50501b68170091f241a11ac Mon Sep 17 00:00:00 2001 From: logari81 Date: Wed, 26 Oct 2011 20:27:30 +0000 Subject: [PATCH] + fix a bug in the trimming tool of the Sketcher git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5071 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Sketcher/App/PropertyConstraintList.cpp | 3 +-- src/Mod/Sketcher/App/SketchObject.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/App/PropertyConstraintList.cpp b/src/Mod/Sketcher/App/PropertyConstraintList.cpp index 28614ee6e..6638c0a6c 100644 --- a/src/Mod/Sketcher/App/PropertyConstraintList.cpp +++ b/src/Mod/Sketcher/App/PropertyConstraintList.cpp @@ -235,9 +235,8 @@ void PropertyConstraintList::checkGeometry(const std::vector & } if (invalidGeometry) { - aboutToSetValue(); invalidGeometry = false; - hasSetValue(); + touch(); } } diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index f52c83de2..fccdf21b1 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -708,6 +708,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point) std::vector< Part::Geometry * > newVals(geomlist); newVals[GeoId] = geoNew; Geometry.setValues(newVals); + Constraints.acceptGeometry(Geometry.getValues()); delete geoNew; rebuildVertexIndex(); @@ -756,8 +757,6 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point) delete newConstr; - Constraints.acceptGeometry(Geometry.getValues()); - return 0; }