From c1f315f50097b0b85a7de684ec846a0853200d81 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Wed, 19 May 2021 13:16:55 +0200 Subject: [PATCH 1/2] Fix classname property for selection_item --- Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp b/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp index 630022bd92d..8068b9dcec4 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp @@ -95,7 +95,7 @@ struct Scene_polyhedron_selection_item_priv{ item(parent) { filtered_graph = nullptr; - item->setProperty("classname", QString("surface_mesh")); + item->setProperty("classname", QString("surface_mesh_selection")); } void initializeBuffers(CGAL::Three::Viewer_interface *viewer) const; From b21f8a412df7f87cde77c7feceabfaddcd344bd5 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Wed, 19 May 2021 14:02:29 +0200 Subject: [PATCH 2/2] Fix string comparison --- Polyhedron/demo/Polyhedron/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index 7cac1ff44b0..d3076f4a642 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -2652,7 +2652,7 @@ QString MainWindow::get_item_stats() QString classname = item->property("classname").toString(); if(classname.isEmpty()) classname = item->metaObject()->className(); - if(classnames.at(i).contains(classname)) + if(classnames.at(i) == classname) { items[i] << s_item; break;