Skip to content

Commit

Permalink
[attribute table] fix crash when adding creating a field on field-les…
Browse files Browse the repository at this point in the history
…s layers
  • Loading branch information
nirvn committed Feb 8, 2018
1 parent 75843a8 commit 839fa50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerundocommand.cpp
Expand Up @@ -313,8 +313,8 @@ void QgsVectorLayerUndoCommandAddAttribute::undo()
void QgsVectorLayerUndoCommandAddAttribute::redo()
{
mBuffer->mAddedAttributes.append( mField );
mBuffer->updateLayerFields();
mBuffer->handleAttributeAdded( mFieldIndex );
mBuffer->updateLayerFields();

emit mBuffer->attributeAdded( mFieldIndex );
}
Expand Down

0 comments on commit 839fa50

Please sign in to comment.