diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index fb07a0197c9..3d71294a87b 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -2662,7 +2662,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; diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp b/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp index 16b3f240055..94741aac6a7 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.cpp @@ -94,7 +94,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")); keep_selection_valid = Scene_polyhedron_selection_item::None; }