Skip to content

Commit

Permalink
Fix attribute table shows columns twice
Browse files Browse the repository at this point in the history
If they have been defined with different capitalization
  • Loading branch information
m-kuhn committed Jan 12, 2017
1 parent b6632b0 commit cce0702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsattributetableconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void QgsAttributeTableConfig::update( const QgsFields& fields )
const ColumnConfig& column = mColumns.at( i );
if ( column.type == Field )
{
if ( fields.lookupField( column.name ) == -1 )
if ( fields.indexOf( column.name ) == -1 )
{
mColumns.remove( i );
}
Expand Down

0 comments on commit cce0702

Please sign in to comment.