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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Nov 8 10:07:53 EST 2008


Author: mhugent
Date: 2008-11-08 10:07:53 -0500 (Sat, 08 Nov 2008)
New Revision: 9595

Modified:
   trunk/qgis/src/app/qgsattributetable.cpp
Log:
Fix for bug #1366 table sort order incorrect

Modified: trunk/qgis/src/app/qgsattributetable.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributetable.cpp	2008-11-08 14:57:25 UTC (rev 9594)
+++ trunk/qgis/src/app/qgsattributetable.cpp	2008-11-08 15:07:53 UTC (rev 9595)
@@ -457,7 +457,7 @@
     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 );



More information about the QGIS-commit mailing list