Skip to content

Commit

Permalink
Save memory in raster rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed May 5, 2012
1 parent 530bdfc commit 0bf56ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -4940,7 +4940,7 @@ bool QgsRasterImageBuffer::createNextPartImage()
//create the QImage
if ( mWritingEnabled )
{
mCurrentImage = new QImage( xSize, ySize, QImage::Format_ARGB32 );
mCurrentImage = new QImage( xSize, rasterYSize, QImage::Format_ARGB32 );
mCurrentImage->fill( qRgba( 255, 255, 255, 0 ) );
}
else
Expand Down

3 comments on commit 0bf56ab

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think this will help with http://hub.qgis.org/issues/4504

@mhugent
Copy link
Contributor Author

@mhugent mhugent commented on 0bf56ab May 6, 2012 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well if the printing of ecws was a memory issue then I'm sure this will help.

Please sign in to comment.