Skip to content

Commit

Permalink
fix #1179
Browse files Browse the repository at this point in the history
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 c72418d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/qgsattributetable.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit c72418d

Please sign in to comment.