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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Feb 6 06:29:41 EST 2009


Author: jef
Date: 2009-02-06 06:29:41 -0500 (Fri, 06 Feb 2009)
New Revision: 10117

Modified:
   trunk/qgis/src/app/qgsattributetabledisplay.cpp
Log:
fix #1532

Modified: trunk/qgis/src/app/qgsattributetabledisplay.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributetabledisplay.cpp	2009-02-06 10:13:09 UTC (rev 10116)
+++ trunk/qgis/src/app/qgsattributetabledisplay.cpp	2009-02-06 11:29:41 UTC (rev 10117)
@@ -296,6 +296,9 @@
 
 void QgsAttributeTableDisplay::search()
 {
+  if ( tblAttributes->rowCount() == 0 )
+    return;
+
   int type = tblAttributes->item( 0, mSearchColumns->currentIndex() )->data( QgsAttributeTable::AttributeType ).toInt();
   bool numeric = ( type == QVariant::Int || type == QVariant::Double );
 



More information about the QGIS-commit mailing list