Skip to content

Commit

Permalink
[layouts] Fix export to pdf reports a print error instead of a file e…
Browse files Browse the repository at this point in the history
…rror on inaccessible file names

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


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

0 comments on commit 2157ab8

Please sign in to comment.