Skip to content

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsattributetable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ void QgsAttributeTable::bringSelectedToTop()
559559
for ( QList<QTableWidgetSelectionRange>::iterator iter = selections.begin();iter != selections.end();++iter )
560560
{
561561
removeselection = true;
562-
while ( item( swaptorow, 0 )->isSelected() )//selections are not necessary stored in ascending order
562+
while ( swaptorow<rowCount() && item( swaptorow, 0 )->isSelected() )//selections are not necessary stored in ascending order
563563
{
564564
++swaptorow;
565565
}

0 commit comments

Comments
 (0)
Please sign in to comment.