Skip to content
Permalink
Browse files

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 b6632b0 commit cce07020ff473b72763ee3e86b2e4e3affa1f059
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsattributetableconfig.cpp
@@ -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 );
}

0 comments on commit cce0702

Please sign in to comment.
You can’t perform that action at this time.