Skip to content

Commit d525512

Browse files
committed
[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)
1 parent 074318e commit d525512

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/app/composer/qgscomposer.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,15 @@ bool QgsComposer::loadFromTemplate( const QDomDocument& templateDoc, bool clearE
919919
setUpdatesEnabled( true );
920920

921921
dlg->close();
922+
923+
if ( result )
924+
{
925+
// update composition widget
926+
QgsCompositionWidget* oldCompositionWidget = qobject_cast<QgsCompositionWidget *>( mGeneralDock->widget() );
927+
delete oldCompositionWidget;
928+
createCompositionWidget();
929+
}
930+
922931
return result;
923932
}
924933

0 commit comments

Comments
 (0)