Skip to content

Commit de00895

Browse files
author
jef
committed
fix #1532
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10117 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 85bbe40 commit de00895

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/qgsattributetabledisplay.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ void QgsAttributeTableDisplay::zoomMapToSelectedRows()
296296

297297
void QgsAttributeTableDisplay::search()
298298
{
299+
if ( tblAttributes->rowCount() == 0 )
300+
return;
301+
299302
int type = tblAttributes->item( 0, mSearchColumns->currentIndex() )->data( QgsAttributeTable::AttributeType ).toInt();
300303
bool numeric = ( type == QVariant::Int || type == QVariant::Double );
301304

0 commit comments

Comments
 (0)