]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Temporarily rolled back to revision 1.1.2.23
authorouv <ouv@opencascade.com>
Tue, 5 Jul 2011 13:34:36 +0000 (13:34 +0000)
committerouv <ouv@opencascade.com>
Tue, 5 Jul 2011 13:34:36 +0000 (13:34 +0000)
src/GraphicsView/GraphicsView_ViewPort.cxx

index 6a91d58a38c2ce6b94a58ca22345e6662635da65..f7d995c3847f0c17a440186ac494c0ad894b6b29 100644 (file)
@@ -259,9 +259,8 @@ GraphicsView_ObjectList GraphicsView_ViewPort::getObjects( bool theIsSortSelecte
 {
   GraphicsView_ObjectList aList;
   QListIterator<QGraphicsItem*> anIter( items() );
-  anIter.toBack(); // objects created later should be put to the result list first
-  while( anIter.hasPrevious() )
-    if( GraphicsView_Object* anObject = dynamic_cast<GraphicsView_Object*>( anIter.previous() ) )
+  while( anIter.hasNext() )
+    if( GraphicsView_Object* anObject = dynamic_cast<GraphicsView_Object*>( anIter.next() ) )
     {
       if( theIsSortSelected && anObject->isSelected() )
         aList.prepend( anObject ); // put the selected objects to a head of the list