diff --git a/src/app/georeferencer/qgsgeorefmainwindow.cpp b/src/app/georeferencer/qgsgeorefmainwindow.cpp index c70ab6f62581..33fdc0a85e88 100644 --- a/src/app/georeferencer/qgsgeorefmainwindow.cpp +++ b/src/app/georeferencer/qgsgeorefmainwindow.cpp @@ -1809,7 +1809,7 @@ bool QgsGeoreferencerMainWindow::writePDFMapFile( const QString &fileName, const //create layout QgsLayout layout( QgsProject::instance() ); - layout->renderContext().setTextRenderFormat( Qgis::TextRenderFormat::AlwaysText ); + layout.renderContext().setTextRenderFormat( Qgis::TextRenderFormat::AlwaysText ); std::unique_ptr< QgsLayoutItemPage > page = std::make_unique< QgsLayoutItemPage >( &layout ); double leftMargin = 8;