From bef8bd9d1682dfce78f6f4365f8bb6680b6fe515 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 14 Jun 2016 10:41:18 +0200 Subject: [PATCH] Fix the create_point_set_from_selection operation. --- Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp index 75fd9a1351f..37689e07ad8 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp @@ -316,8 +316,9 @@ public Q_SLOTS: for(Scene_polyhedron_selection_item::Selection_set_vertex::iterator begin = selection_item->selected_vertices.begin(); begin != selection_item->selected_vertices.end(); ++begin) { point_item->point_set()->push_back((*begin)->point()); - break; } + scene->setSelectedItem( scene->addItem(point_item) ); + break; } //Create Polyline Item from Selected Edges case 1: