Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix for composer map item's background when non-opaque
  • Loading branch information
olivierdalang committed Jan 29, 2013
1 parent ec0d944 commit 45a5fe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/composer/qgscomposermap.cpp
Expand Up @@ -227,7 +227,8 @@ void QgsComposerMap::cache( void )
double forcedWidthScaleFactor = w / requestExtent.width() / mapUnitsToMM();

mCacheImage = QImage( w, h, QImage::Format_ARGB32 );
mCacheImage.fill( brush().color().rgb() ); //consider the item background brush
mCacheImage.fill( QColor(255,255,255,0).rgba() ); // the background is drawn by composerItem, but we still need to start with that empty fill to avoid artifacts

double mapUnitsPerPixel = mExtent.width() / w;

// WARNING: ymax in QgsMapToPixel is device height!!!
Expand Down

0 comments on commit 45a5fe7

Please sign in to comment.