[QGIS Commit] r9290 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Sep 10 12:30:00 EDT 2008


Author: jef
Date: 2008-09-10 12:30:00 -0400 (Wed, 10 Sep 2008)
New Revision: 9290

Modified:
   trunk/qgis/src/app/qgsattributetable.cpp
Log:
fix #1307

Modified: trunk/qgis/src/app/qgsattributetable.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributetable.cpp	2008-09-10 16:29:10 UTC (rev 9289)
+++ trunk/qgis/src/app/qgsattributetable.cpp	2008-09-10 16:30:00 UTC (rev 9290)
@@ -559,7 +559,7 @@
   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;
     }



More information about the QGIS-commit mailing list