diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp index 2f7e9f7b8e1..33882b8d858 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Affine_transform_plugin.cpp @@ -541,7 +541,6 @@ void Polyhedron_demo_affine_transform_plugin::start(Scene_points_with_normal_ite void Polyhedron_demo_affine_transform_plugin::end(){ - QApplication::restoreOverrideCursor(); double matrix[16]; transformMatrix(&matrix[0]); const CGAL::qglviewer::Vec offset = static_cast(CGAL::QGLViewer::QGLViewerPool().first())->offset(); @@ -600,6 +599,7 @@ void Polyhedron_demo_affine_transform_plugin::end(){ transform_points_item = NULL; } dock_widget->hide(); + QApplication::restoreOverrideCursor(); } void Polyhedron_demo_affine_transform_plugin::updateUiMatrix()