Skip to content
Permalink
Browse files

Fix undo/redo of newly added maps

  • Loading branch information
nyalldawson committed Oct 24, 2017
1 parent 72a1f77 commit 87d497eb2b57577623a139620d2382e940bebdb3
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/gui/layout/qgslayoutviewtooladditem.cpp
@@ -119,10 +119,9 @@ void QgsLayoutViewToolAddItem::layoutReleaseEvent( QgsLayoutViewMouseEvent *even
settings.setValue( QStringLiteral( "LayoutDesigner/lastItemHeight" ), item->sizeWithUnits().height() );
settings.setValue( QStringLiteral( "LayoutDesigner/lastSizeUnit" ), static_cast< int >( item->sizeWithUnits().units() ) );

layout()->addLayoutItem( item );

QgsGui::layoutItemGuiRegistry()->newItemAddedToLayout( mItemMetadataId, item );

layout()->addLayoutItem( item );
layout()->setSelectedItem( item );
emit createdItem();
}

0 comments on commit 87d497e

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