Skip to content
Permalink
Browse files
Apply patch to fix bug #1171 also to version 1
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@9892 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 23, 2008
1 parent 1fd77b7 commit 85a88c865001b90e3d5f3a1966a534a71eea8ad9
Showing with 2 additions and 2 deletions.
  1. +1 −0 src/gui/qgsmapcanvas.cpp
  2. +1 −2 src/gui/qgsmapcanvasmap.cpp
@@ -160,6 +160,7 @@ void QgsMapCanvas::enableAntiAliasing( bool theFlag )
void QgsMapCanvas::useImageToRender( bool theFlag )
{
mMap->useImageToRender( theFlag );
refresh(); // redraw the map on change - prevents black map view
}

QgsMapCanvasMap* QgsMapCanvas::map()
@@ -49,6 +49,7 @@ QRectF QgsMapCanvasMap::boundingRect() const
void QgsMapCanvasMap::resize( QSize size )
{
mPixmap = QPixmap( size );
mImage = QImage( size, QImage::Format_RGB32 ); // temporary image - build it here so it is available when switching from QPixmap to QImage rendering
mCanvas->mapRenderer()->setOutputSize( size, mPixmap.logicalDpiX() );
}

@@ -68,8 +69,6 @@ void QgsMapCanvasMap::render()
if ( mUseQImageToRender )
{
// use temporary image for rendering
mImage = QImage( boundingRect().size().toSize(), QImage::Format_RGB32 );

mImage.fill( mBgColor.rgb() );

QPainter paint;

0 comments on commit 85a88c8

Please sign in to comment.