Skip to content

Commit 839fa50

Browse files
committed
[attribute table] fix crash when adding creating a field on field-less layers
1 parent 75843a8 commit 839fa50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsvectorlayerundocommand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ void QgsVectorLayerUndoCommandAddAttribute::undo()
313313
void QgsVectorLayerUndoCommandAddAttribute::redo()
314314
{
315315
mBuffer->mAddedAttributes.append( mField );
316-
mBuffer->updateLayerFields();
317316
mBuffer->handleAttributeAdded( mFieldIndex );
317+
mBuffer->updateLayerFields();
318318

319319
emit mBuffer->attributeAdded( mFieldIndex );
320320
}

0 commit comments

Comments
 (0)