Skip to content

Commit

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

0 comments on commit e7f834a

Please sign in to comment.