Skip to content
Permalink
Browse files

[layouts] Fix export to pdf reports a print error instead of a file e…

…rror on inaccessible file names

(cherry-picked from 5498204)
  • Loading branch information
nyalldawson committed Jul 19, 2018
1 parent a8ef508 commit 2157ab8152f96648b6e3cf008dd7456294d91425
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layout/qgslayoutexporter.cpp
@@ -486,7 +486,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( const QString &f
if ( !p.begin( &printer ) )
{
//error beginning print
return PrintError;
return FileError;
}

ExportResult result = printPrivate( printer, p, false, settings.dpi, settings.rasterizeWholeImage );

0 comments on commit 2157ab8

Please sign in to comment.
You can’t perform that action at this time.