Skip copying of tiles when there aren't any tiles

svn path=/trunk/KDE/kdebase/workspace/; revision=1123171
This commit is contained in:
Nikhil Marathe 2010-05-05 13:51:00 +00:00
parent 33234b75eb
commit ef02e261ae

View file

@ -98,6 +98,10 @@ TilingLayout* TilingLayoutFactory::cycleLayout( TilingLayout *curr, bool next )
curr->removeTileNoArrange( t );
}
if( tiles.length() == 0 )
return l;
// so that we don't rearrange after every call
Tile *last = tiles.takeLast();
foreach( Tile *t, tiles )
{