mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[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
This commit is contained in:
parent
656e56e447
commit
7343b36e25
@ -921,6 +921,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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user