fix map save dialog initialization

This commit is contained in:
viperminiq 2025-04-29 21:28:58 +02:00 committed by Nyall Dawson
parent f4fe5998d8
commit d8a2229090

View File

@ -7067,14 +7067,14 @@ void QgisApp::saveMapAsImage()
{
QgsMapSaveDialog *dlg = new QgsMapSaveDialog( this, mMapCanvas, activeDecorations(), QgsProject::instance()->annotationManager()->annotations() );
dlg->setAttribute( Qt::WA_DeleteOnClose );
dlg->show();
dlg->exec();
} // saveMapAsImage
void QgisApp::saveMapAsPdf()
{
QgsMapSaveDialog *dlg = new QgsMapSaveDialog( this, mMapCanvas, activeDecorations(), QgsProject::instance()->annotationManager()->annotations(), QgsMapSaveDialog::Pdf );
dlg->setAttribute( Qt::WA_DeleteOnClose );
dlg->show();
dlg->exec();
} // saveMapAsPdf
//overloaded version of the above function