Skip to content
Permalink
Browse files

[composer] Load all composition properties from template/duplicate

Previously some settings where not being correctly restore, eg
page size, grid settings, expression variables

On behalf of Faunalia, sponsored by ENEL

Fix #8705

(cherry-picked from 7343b36)
  • Loading branch information
nyalldawson committed Jul 19, 2016
1 parent 9213df2 commit 118e33328cf5375057847aaf5c4f8d895693d3e8
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/app/composer/qgscomposer.cpp
@@ -919,6 +919,15 @@ bool QgsComposer::loadFromTemplate( const QDomDocument& templateDoc, bool clearE
setUpdatesEnabled( true );

dlg->close();

if ( result )
{
// update composition widget
QgsCompositionWidget* oldCompositionWidget = qobject_cast<QgsCompositionWidget *>( mGeneralDock->widget() );
delete oldCompositionWidget;
createCompositionWidget();
}

return result;
}

0 comments on commit 118e333

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