Skip to content

Commit

Permalink
fix transparency in qgsmaprenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Feb 2, 2016
1 parent c3ed6b9 commit 86f97d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaprendererjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void QgsMapRendererJob::cleanupJobs( LayerRenderJobs& jobs )
QImage QgsMapRendererJob::composeImage( const QgsMapSettings& settings, const LayerRenderJobs& jobs )
{
QImage image( settings.outputSize(), settings.outputImageFormat() );
image.fill( settings.backgroundColor().rgb() );
image.fill( settings.backgroundColor().rgba() );

QPainter painter( &image );

Expand Down
1 change: 1 addition & 0 deletions src/core/qgsmaprenderersequentialjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ QgsMapRendererSequentialJob::QgsMapRendererSequentialJob( const QgsMapSettings&
mImage = QImage( mSettings.outputSize(), mSettings.outputImageFormat() );
mImage.setDotsPerMeterX( 1000 * settings.outputDpi() / 25.4 );
mImage.setDotsPerMeterY( 1000 * settings.outputDpi() / 25.4 );
mImage.fill( settings.backgroundColor().rgba() );
}

QgsMapRendererSequentialJob::~QgsMapRendererSequentialJob()
Expand Down

0 comments on commit 86f97d1

Please sign in to comment.