Skip to content

Commit

Permalink
Fix for ticket #193. Added in a clip region when drawing to a QImage
Browse files Browse the repository at this point in the history
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 a165cb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsmapcanvasmap.cpp
Original file line number Diff line number Diff line change
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 a165cb6

Please sign in to comment.