diff --git a/src/app/composer/qgscomposer.cpp b/src/app/composer/qgscomposer.cpp index f09aed8c062..93b58634bcc 100644 --- a/src/app/composer/qgscomposer.cpp +++ b/src/app/composer/qgscomposer.cpp @@ -747,7 +747,9 @@ void QgsComposer::on_mActionExportAsSVG_triggered() mComposition->setPlotStyle( QgsComposition::Print ); QSvgGenerator generator; +#if QT_VERSION >= 0x040500 generator.setTitle( QgsProject::instance()->title() ); +#endif generator.setFileName( myOutputFileNameQString ); //width in pixel int width = ( int )( mComposition->paperWidth() * mComposition->printResolution() / 25.4 );