mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
Don't report successful geopdf creation when it wasn't successful
This commit is contained in:
parent
1355c1fbd2
commit
fdb9b97f4e
@ -645,7 +645,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( const QString &f
|
||||
details.useOgcBestPracticeFormatGeoreferencing = settings.useOgcBestPracticeFormatGeoreferencing;
|
||||
details.useIso32000ExtensionFormatGeoreferencing = settings.useIso32000ExtensionFormatGeoreferencing;
|
||||
|
||||
geoPdfExporter->finalize( pdfComponents, filePath, details );
|
||||
if ( !geoPdfExporter->finalize( pdfComponents, filePath, details ) )
|
||||
result = PrintError;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -226,11 +226,11 @@ bool QgsMapRendererTask::run()
|
||||
exportDetails.georeferencedSections << georef;
|
||||
}
|
||||
|
||||
mGeoPdfExporter->finalize( pdfComponents, mFileName, exportDetails );
|
||||
const bool res = mGeoPdfExporter->finalize( pdfComponents, mFileName, exportDetails );
|
||||
mGeoPdfExporter.reset();
|
||||
mTempPainter.reset();
|
||||
mPrinter.reset();
|
||||
return true;
|
||||
return res;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user