diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp index 1772a029a42..d4e638d31b5 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp @@ -571,7 +571,8 @@ void Polyhedron_demo_affine_transform_plugin::end(){ if(transform_item) { CGAL::qglviewer::Vec c = transform_item->center(); - FaceGraph* new_sm = new FaceGraph(*transform_item->getFaceGraph()); + FaceGraph* new_sm = new FaceGraph(); + CGAL::copy_face_graph(*transform_item->getFaceGraph(), *new_sm); typedef boost::property_map::type VPmap; VPmap vpmap = get(CGAL::vertex_point, *new_sm);