Skip to content

Commit

Permalink
fix building without qt' printer
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik authored and nyalldawson committed Aug 30, 2019
1 parent 0d5d6ca commit 5effed4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/qgsmaprenderertask.cpp
Expand Up @@ -174,6 +174,9 @@ bool QgsMapRendererTask::run()

if ( mGeoPDF )
{
#ifdef QT_NO_PRINTER
return false;
#else
QList< QgsAbstractGeoPdfExporter::ComponentLayerDetail > pdfComponents;

QgsMapRendererStagedRenderJob *job = static_cast< QgsMapRendererStagedRenderJob * >( mJob.get() );
Expand Down Expand Up @@ -228,6 +231,7 @@ bool QgsMapRendererTask::run()
mTempPainter.reset();
mPrinter.reset();
return true;
#endif
}
else
static_cast< QgsMapRendererCustomPainterJob *>( mJob.get() )->renderPrepared();
Expand Down Expand Up @@ -413,7 +417,9 @@ bool QgsMapRendererTask::run()
}

mTempPainter.reset();
#ifndef QT_NO_PRINTER
mPrinter.reset();
#endif

return true;
}
Expand Down Expand Up @@ -466,7 +472,6 @@ void QgsMapRendererTask::prepare()
}
#else
mError = ImageUnsupportedFormat;
return false;
#endif // ! QT_NO_PRINTER
}

Expand Down

0 comments on commit 5effed4

Please sign in to comment.