Update src/Mod/Sketcher/App/SketchObject.cpp

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
David Österberg
2020-12-15 16:55:25 +01:00
committed by abdullahtahiriyo
parent 06c31d2478
commit ca1ebf2321

View File

@@ -2330,7 +2330,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point)
std::swap(x1,x2);
}
if (x1 >= 0.001*length && x2 <= 0.999*length) {
if (x1 < x0 && x2 > x0) { // trim a way a sement in the middle
if (x1 < x0 && x2 > x0) { // trim away a segment in the middle
int newGeoId = addGeometry(geo);
// go through all constraints and replace the point (GeoId,end) with (newGeoId,end)
transferConstraints(GeoId, end, newGeoId, end);