Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 437aa23 commit 5ee8880
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -889,6 +889,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;
}

Expand Down

0 comments on commit 5ee8880

Please sign in to comment.