Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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@5612 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jul 19, 2006
1 parent 264a408 commit 79023aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsmapcanvasmap.cpp
Expand Up @@ -57,6 +57,8 @@ void QgsMapCanvasMap::render()

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

// antialiasing
if (mAntiAliasing)
Expand Down

0 comments on commit 79023aa

Please sign in to comment.