diff --git a/Polyhedron/demo/Polyhedron/Scene.cpp b/Polyhedron/demo/Polyhedron/Scene.cpp index 1b1b7970b7b..27fb9ab3835 100644 --- a/Polyhedron/demo/Polyhedron/Scene.cpp +++ b/Polyhedron/demo/Polyhedron/Scene.cpp @@ -790,7 +790,7 @@ Scene::setData(const QModelIndex &index, return true; break; case ColorColumn: - if(!selectionIndices().empty()) + if(selectionIndices().contains(item_id(item))) Q_FOREACH(Item_id item_index, selectionIndices()) this->item(item_index)->setColor(value.value()); else