Skip to content
Permalink
Browse files
Fix for ticket #193. Added in a clip region when drawing to a QImage
to prevent draws outside the QImage.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5612 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jul 19, 2006
1 parent ce15e7e commit a165cb609a0f478f865182a36e57357f2a6577a8
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsmapcanvasmap.cpp
@@ -57,6 +57,8 @@ void QgsMapCanvasMap::render()

QPainter paint;
paint.begin(&image);
// Clip drawing to the QImage
paint.setClipRect(image.rect());

// antialiasing
if (mAntiAliasing)

0 comments on commit a165cb6

Please sign in to comment.