From 83904186aec53574d510e8cd70ae7eb4d9f4b714 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 5 Jul 2011 13:34:36 +0000 Subject: [PATCH] Temporarily rolled back to revision 1.1.2.23 --- src/GraphicsView/GraphicsView_ViewPort.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.2