Sketcher: Carbon copy using copy instead of clone

This commit is contained in:
Abdullah Tahiri
2017-04-05 22:50:31 +02:00
committed by wmayer
parent 9382de15a9
commit 30ffd1db0c

View File

@@ -4167,7 +4167,7 @@ int SketchObject::carbonCopy(App::DocumentObject * pObj, bool construction)
const std::vector< Sketcher::Constraint * > &scvals = psObj->Constraints.getValues();
for (std::vector<Part::Geometry *>::const_iterator it=svals.begin(); it != svals.end(); ++it){
Part::Geometry *geoNew = (*it)->clone();
Part::Geometry *geoNew = (*it)->copy();
if(construction) {
geoNew->Construction = true;
}