Skip to content

Commit d9cb13c

Browse files
committed
Make intention of comment a bit clearer
(cherry picked from commit 7141143)
1 parent 0e694ea commit d9cb13c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/layout/qgslayoutexporter.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,8 @@ QgsLayoutExporter::ExportResult QgsLayoutExporter::exportToSvg( QgsAbstractLayou
10241024
void QgsLayoutExporter::preparePrintAsPdf( QgsLayout *layout, QPrinter &printer, const QString &filePath )
10251025
{
10261026
printer.setOutputFileName( filePath );
1027-
// setOutputFormat should come after setOutputFileName, which auto-sets format to QPrinter::PdfFormat.
1027+
// setOutputFormat MUST come after setOutputFileName, which auto-sets format to QPrinter::PdfFormat.
1028+
10281029
// [LS] This should be QPrinter::NativeFormat for Mac, otherwise fonts are not embed-able
10291030
// and text is not searchable; however, there are several bugs with <= Qt 4.8.5, 5.1.1, 5.2.0:
10301031
// https://bugreports.qt.io/browse/QTBUG-10094 - PDF font embedding fails

0 commit comments

Comments
 (0)