Sketcher: Fix sketchobject copy/clone

This commit is contained in:
Abdullah Tahiri
2017-04-09 14:28:16 +02:00
committed by wmayer
parent c3c670e162
commit e54b6a12c1

View File

@@ -2142,7 +2142,7 @@ int SketchObject::addSymmetric(const std::vector<int> &geoIdList, int refGeoId,
for (std::vector<int>::const_iterator it = geoIdList.begin(); it != geoIdList.end(); ++it) {
const Part::Geometry *geo = getGeometry(*it);
Part::Geometry *geosym = geo->clone();
Part::Geometry *geosym = geo->copy();
// Handle Geometry
if(geosym->getTypeId() == Part::GeomLineSegment::getClassTypeId()){
@@ -2404,7 +2404,7 @@ int SketchObject::addSymmetric(const std::vector<int> &geoIdList, int refGeoId,
for (std::vector<int>::const_iterator it = geoIdList.begin(); it != geoIdList.end(); ++it) {
const Part::Geometry *geo = getGeometry(*it);
Part::Geometry *geosym = geo->clone();
Part::Geometry *geosym = geo->copy();
// Handle Geometry
if(geosym->getTypeId() == Part::GeomLineSegment::getClassTypeId()){
@@ -2729,7 +2729,7 @@ int SketchObject::addCopy(const std::vector<int> &geoIdList, const Base::Vector3
for (std::vector<int>::const_iterator it = geoIdList.begin(); it != geoIdList.end(); ++it) {
const Part::Geometry *geo = getGeometry(*it);
Part::Geometry *geocopy = geo->clone();
Part::Geometry *geocopy = geo->copy();
// Handle Geometry
if(geocopy->getTypeId() == Part::GeomLineSegment::getClassTypeId()){