Skip to content

Commit

Permalink
Fix #9376 (crash when sorting attribute table with no attributes)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Feb 10, 2014
1 parent d66ecf6 commit db29ebc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -699,6 +699,8 @@ void QgsAttributeTableModel::prefetchColumnData( int column )
}
else
{
if ( column >= mAttributes.count() )
return;
int fieldId = mAttributes[ column ];
const QgsFields& fields = layer()->pendingFields();
QStringList fldNames;
Expand Down

0 comments on commit db29ebc

Please sign in to comment.