File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,6 @@ void QgsMapCanvasMap::setPanningOffset( const QPoint& point )
61
61
62
62
void QgsMapCanvasMap::render ()
63
63
{
64
- // Rendering to a QImage gives incorrectly filled polygons in some
65
- // cases (as at Qt4.1.4), but it is the only renderer that supports
66
- // anti-aliasing, so we provide the means to swap between QImage and
67
- // QPixmap.
68
-
69
64
if ( mUseQImageToRender )
70
65
{
71
66
// use temporary image for rendering
@@ -99,6 +94,11 @@ void QgsMapCanvasMap::render()
99
94
paint.begin ( &mPixmap );
100
95
// Clip our drawing to the QPixmap
101
96
paint.setClipRect ( mPixmap .rect () );
97
+
98
+ // antialiasing
99
+ if ( mAntiAliasing )
100
+ paint.setRenderHint ( QPainter::Antialiasing );
101
+
102
102
mCanvas ->mapRenderer ()->render ( &paint );
103
103
paint.end ();
104
104
}
You can’t perform that action at this time.
0 commit comments