Commit ad9162e4 authored by Thorsten Zachmann's avatar Thorsten Zachmann
Browse files

o Fix out of bounds error which kills the test with an abort

svn path=/trunk/koffice/; revision=603340
parent ed336054
......@@ -186,7 +186,7 @@ KoShape * KoShapeManager::shapeAt( const QPointF &position, KoFlake::ShapeSelect
if( ! firstUnselectedShape )
firstUnselectedShape = shape;
// check if the shape above is selected
if( count < sorterdShapes.count() && m_selection->isSelected( sorterdShapes.at(count+1) ) )
if( count + 1 < sorterdShapes.count() && m_selection->isSelected( sorterdShapes.at(count + 1) ) )
return shape;
break;
}
......
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