Skip to content

Commit

Permalink
Fixup ae242f5
Browse files Browse the repository at this point in the history
In QGIS 2.8 QgsField is not yet implicitly shared...
  • Loading branch information
m-kuhn committed May 26, 2015
1 parent ae242f5 commit 5d5229e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsfield.cpp
Expand Up @@ -203,11 +203,11 @@ void QgsFields::remove( int fieldIdx )
if ( !exists( fieldIdx ) )
return;

d->fields.remove( fieldIdx );
d->nameToIndex.clear();
mFields.remove( fieldIdx );
mNameToIndex.clear();
for ( int idx = 0; idx < count(); ++idx )
{
d->nameToIndex.insert( d->fields[idx].field.name(), idx );
mNameToIndex.insert( mFields[idx].field.name(), idx );
}
}

Expand Down

0 comments on commit 5d5229e

Please sign in to comment.