From: ouv Date: Tue, 5 Jul 2011 13:34:36 +0000 (+0000) Subject: Temporarily rolled back to revision 1.1.2.23 X-Git-Tag: DIAGRAM_1_0~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=83904186aec53574d510e8cd70ae7eb4d9f4b714;p=modules%2Fgui.git Temporarily rolled back to revision 1.1.2.23 --- diff --git a/src/GraphicsView/GraphicsView_ViewPort.cxx b/src/GraphicsView/GraphicsView_ViewPort.cxx index 6a91d58a3..f7d995c38 100644 --- a/src/GraphicsView/GraphicsView_ViewPort.cxx +++ b/src/GraphicsView/GraphicsView_ViewPort.cxx @@ -259,9 +259,8 @@ GraphicsView_ObjectList GraphicsView_ViewPort::getObjects( bool theIsSortSelecte { GraphicsView_ObjectList aList; QListIterator anIter( items() ); - anIter.toBack(); // objects created later should be put to the result list first - while( anIter.hasPrevious() ) - if( GraphicsView_Object* anObject = dynamic_cast( anIter.previous() ) ) + while( anIter.hasNext() ) + if( GraphicsView_Object* anObject = dynamic_cast( anIter.next() ) ) { if( theIsSortSelected && anObject->isSelected() ) aList.prepend( anObject ); // put the selected objects to a head of the list