Skip to content
Permalink
Browse files
fix #1179
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8946 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jul 29, 2008
1 parent dda7ab3 commit c72418d0c5c4c35146c002ad08d2006c862fcdee
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/app/qgsattributetable.cpp
@@ -395,11 +395,9 @@ bool QgsAttributeTable::addAttribute(const QString& name, const QString& type)
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;
}

0 comments on commit c72418d

Please sign in to comment.