Fix for bug #1366 table sort order incorrect

git-svn-id: http://svn.osgeo.org/qgis/trunk@9595 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2008-11-08 15:07:53 +00:00
parent dc0b929f97
commit 933cfb96a7

View File

@ -457,7 +457,7 @@ void QgsAttributeTable::fillTable( QgsVectorLayer *layer )
QTableWidgetItem *twi = new QTableWidgetItem( fldIt->name() );
twi->setData( AttributeIndex, fldIt.key() );
twi->setData( AttributeName, fldIt->name() );
twi->setData( AttributeType, fldIt->type() );
twi->setData( QgsAttributeTable::AttributeType, (int)(fldIt->type()));
setHorizontalHeaderItem( h, twi );
mAttrIdxMap.insert( fldIt.key(), h );