From e54b6a12c14f199582fba256dd85bdbfd5ac527d Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 9 Apr 2017 14:28:16 +0200 Subject: [PATCH] Sketcher: Fix sketchobject copy/clone --- src/Mod/Sketcher/App/SketchObject.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 75353fbe8c..abba314882 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -2142,7 +2142,7 @@ int SketchObject::addSymmetric(const std::vector &geoIdList, int refGeoId, for (std::vector::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 &geoIdList, int refGeoId, for (std::vector::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 &geoIdList, const Base::Vector3 for (std::vector::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()){