mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
fix #1307
git-svn-id: http://svn.osgeo.org/qgis/trunk@9290 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
f7828e68e1
commit
98c3309703
@ -559,7 +559,7 @@ void QgsAttributeTable::bringSelectedToTop()
|
||||
for ( QList<QTableWidgetSelectionRange>::iterator iter = selections.begin();iter != selections.end();++iter )
|
||||
{
|
||||
removeselection = true;
|
||||
while ( item( swaptorow, 0 )->isSelected() )//selections are not necessary stored in ascending order
|
||||
while ( swaptorow<rowCount() && item( swaptorow, 0 )->isSelected() )//selections are not necessary stored in ascending order
|
||||
{
|
||||
++swaptorow;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user