diff --git a/hurricane/src/hviewer/CellWidget.cpp b/hurricane/src/hviewer/CellWidget.cpp index 03ba13d8..ccd76357 100644 --- a/hurricane/src/hviewer/CellWidget.cpp +++ b/hurricane/src/hviewer/CellWidget.cpp @@ -1188,10 +1188,9 @@ namespace Hurricane { void CellWidget::unselectAll ( bool delayRedraw ) { - set::iterator iselector = _selectors.begin (); - for ( ; iselector != _selectors.end() ; iselector++ ) { - (*iselector)->detachFrom ( this ); - } + set::iterator iselector; + while ( !_selectors.empty() ) + (*_selectors.begin())->detachFrom ( this ); _selectionHasChanged = true; if ( !delayRedraw ) redraw ();