mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-22 00:06:57 -04:00
Fix layout display when canceling export settings dialogs
This commit is contained in:
parent
1ccbdb870f
commit
88077e4ab9
@ -2064,13 +2064,13 @@ void QgsLayoutDesignerDialog::exportToPdf()
|
||||
|
||||
setLastExportPath( outputFileName );
|
||||
|
||||
mView->setPaintingEnabled( false );
|
||||
QgsTemporaryCursorOverride cursorOverride( Qt::BusyCursor );
|
||||
|
||||
QgsLayoutExporter::PdfExportSettings pdfSettings;
|
||||
if ( !getPdfExportSettings( pdfSettings ) )
|
||||
return;
|
||||
|
||||
mView->setPaintingEnabled( false );
|
||||
QgsTemporaryCursorOverride cursorOverride( Qt::BusyCursor );
|
||||
|
||||
QgsProxyProgressTask *proxyTask = new QgsProxyProgressTask( tr( "Exporting “%1”" ).arg( mMasterLayout->name() ) );
|
||||
QgsApplication::taskManager()->addTask( proxyTask );
|
||||
|
||||
@ -2967,13 +2967,12 @@ void QgsLayoutDesignerDialog::exportAtlasToPdf()
|
||||
outputFileName = QDir( dir ).filePath( QStringLiteral( "atlas" ) ); // filename is overridden by atlas
|
||||
}
|
||||
|
||||
mView->setPaintingEnabled( false );
|
||||
QgsTemporaryCursorOverride cursorOverride( Qt::BusyCursor );
|
||||
|
||||
QgsLayoutExporter::PdfExportSettings pdfSettings;
|
||||
if ( !getPdfExportSettings( pdfSettings ) )
|
||||
return;
|
||||
|
||||
mView->setPaintingEnabled( false );
|
||||
QgsTemporaryCursorOverride cursorOverride( Qt::BusyCursor );
|
||||
pdfSettings.rasterizeWholeImage = mLayout->customProperty( QStringLiteral( "rasterize" ), false ).toBool();
|
||||
|
||||
QString error;
|
||||
@ -3345,9 +3344,6 @@ void QgsLayoutDesignerDialog::exportReportToPdf()
|
||||
}
|
||||
setLastExportPath( outputFileName );
|
||||
|
||||
mView->setPaintingEnabled( false );
|
||||
QgsTemporaryCursorOverride cursorOverride( Qt::BusyCursor );
|
||||
|
||||
bool rasterize = false;
|
||||
if ( mLayout )
|
||||
{
|
||||
@ -3357,6 +3353,9 @@ void QgsLayoutDesignerDialog::exportReportToPdf()
|
||||
if ( !getPdfExportSettings( pdfSettings ) )
|
||||
return;
|
||||
|
||||
mView->setPaintingEnabled( false );
|
||||
QgsTemporaryCursorOverride cursorOverride( Qt::BusyCursor );
|
||||
|
||||
pdfSettings.rasterizeWholeImage = rasterize;
|
||||
|
||||
QString error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user