Skip to content

Commit db29ebc

Browse files
committedFeb 10, 2014
Fix #9376 (crash when sorting attribute table with no attributes)
1 parent d66ecf6 commit db29ebc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,8 @@ void QgsAttributeTableModel::prefetchColumnData( int column )
699699
}
700700
else
701701
{
702+
if ( column >= mAttributes.count() )
703+
return;
702704
int fieldId = mAttributes[ column ];
703705
const QgsFields& fields = layer()->pendingFields();
704706
QStringList fldNames;

0 commit comments

Comments
 (0)
Please sign in to comment.