Skip to content
Permalink
Browse files

[attribute table] fix crash when adding creating a field on field-les…

…s layers
  • Loading branch information
nirvn committed Feb 8, 2018
1 parent 75843a8 commit 839fa508122a578efc13ddcb1e31d3a6105b0ee3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayerundocommand.cpp
@@ -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 );
}

0 comments on commit 839fa50

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