Skip to content
Permalink
Browse files
fix #1179
git-svn-id: http://svn.osgeo.org/qgis/trunk@8946 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jul 29, 2008
1 parent 8b24e29 commit c7c26662c63be144d9e52f3f9704b4e3c51ef633
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 c7c2666

Please sign in to comment.