Skip to content

Commit 5498204

Browse files
committed
[layouts] Fix export to pdf reports a print error instead of a file error on inaccessible file names
1 parent 3abbb47 commit 5498204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/layout/qgslayoutexporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToPdf( const QString &f
486486
if ( !p.begin( &printer ) )
487487
{
488488
//error beginning print
489-
return PrintError;
489+
return FileError;
490490
}
491491

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

0 commit comments

Comments
 (0)