Skip to content
Permalink
Browse files
Fixup ae242f5
In QGIS 2.8 QgsField is not yet implicitly shared...
  • Loading branch information
m-kuhn committed May 26, 2015
1 parent ae242f5 commit 5d5229ea069f32f8c104d7882f21a5da39dac0ad
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsfield.cpp
@@ -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 );
}
}

0 comments on commit 5d5229e

Please sign in to comment.