Commit 8f4d6064 authored by Jan Möbius's avatar Jan Möbius
Browse files

Removed redundant call in BaseObjects next function

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15193 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cecfa6fb
......@@ -418,8 +418,9 @@ BaseObject* BaseObject::next() {
while ( parentPointer ) {
// If there is an unvisited child of the parent, return this one
if ( parentPointer->childCount() > ( thisPointer->row() + 1) ) {
return parentPointer->childItems_[ thisPointer->row() + 1 ];
int nextIndex = ( thisPointer->row() + 1);
if ( parentPointer->childCount() > nextIndex ) {
return parentPointer->childItems_[ nextIndex ];
}
// Go to the next level
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment