diff --git a/src/app/qgsattributetable.cpp b/src/app/qgsattributetable.cpp index 069bcdf697d..d71c4a3b43d 100644 --- a/src/app/qgsattributetable.cpp +++ b/src/app/qgsattributetable.cpp @@ -559,7 +559,7 @@ void QgsAttributeTable::bringSelectedToTop() for ( QList::iterator iter = selections.begin();iter != selections.end();++iter ) { removeselection = true; - while ( item( swaptorow, 0 )->isSelected() )//selections are not necessary stored in ascending order + while ( swaptorowisSelected() )//selections are not necessary stored in ascending order { ++swaptorow; }