Sketcher: using copy in addGeometry instead of clone to avoid that python users inadvertendly generate two geometries with the same Geometry tag

This commit is contained in:
Abdullah Tahiri
2017-04-09 22:04:36 +02:00
committed by wmayer
parent 4fe698e1ee
commit 71a555a6bb

View File

@@ -642,7 +642,7 @@ int SketchObject::addGeometry(const Part::Geometry *geo, bool construction/*=fal
const std::vector< Part::Geometry * > &vals = getInternalGeometry();
std::vector< Part::Geometry * > newVals(vals);
Part::Geometry *geoNew = geo->clone();
Part::Geometry *geoNew = geo->copy();
if(geoNew->getTypeId() != Part::GeomPoint::getClassTypeId())
geoNew->Construction = construction;