mirror of https://github.com/CGAL/cgal
If the color column selected clicked is not in the selection, edit the corresponding item, not the current selection.
This commit is contained in:
parent
070f661244
commit
1dfbced8d5
|
|
@ -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<QColor>());
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue