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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Jul 29 05:18:48 EDT 2008


Author: jef
Date: 2008-07-29 05:17:31 -0400 (Tue, 29 Jul 2008)
New Revision: 8946

Modified:
   trunk/qgis/src/app/qgsattributetable.cpp
Log:
fix #1179

Modified: trunk/qgis/src/app/qgsattributetable.cpp
===================================================================
--- trunk/qgis/src/app/qgsattributetable.cpp	2008-07-28 20:09:29 UTC (rev 8945)
+++ trunk/qgis/src/app/qgsattributetable.cpp	2008-07-29 09:17:31 UTC (rev 8946)
@@ -395,11 +395,9 @@
   mAddedAttributes.insert(name,type);
 
   QgsDebugMsg("inserting attribute " + name + " of type " + type + ", numCols: " + QString::number(columnCount()) );
-
   //add a new column at the end of the table
-
   insertColumn(columnCount());
-  horizontalHeaderItem(columnCount()-1)->setText(name);
+  setHorizontalHeaderItem(columnCount()-1, new QTableWidgetItem(name));
   mEdited=true;
   return true;
 }



More information about the QGIS-commit mailing list