Skip to content

Commit d06a1fe

Browse files
committedJun 18, 2014
[composer] Force vector rendering of shape and page symbology (fix #10616)
1 parent 7af7b88 commit d06a1fe

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed
 

‎src/core/composer/qgscomposermap.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,6 +1454,7 @@ void QgsComposerMap::drawGrid( QPainter* p )
14541454
ms.setExtent( *currentMapExtent() );
14551455
ms.setOutputDpi( p->device()->logicalDpiX() );
14561456
QgsRenderContext context = QgsRenderContext::fromMapSettings( ms );
1457+
context.setForceVectorOutput( true );
14571458
context.setPainter( p );
14581459

14591460
//simpler approach: draw vertical lines first, then horizontal ones
@@ -2581,6 +2582,7 @@ void QgsComposerMap::drawOverviewMapExtent( QPainter* p )
25812582
ms.setExtent( *currentMapExtent() );
25822583
ms.setOutputDpi( p->device()->logicalDpiX() );
25832584
QgsRenderContext context = QgsRenderContext::fromMapSettings( ms );
2585+
context.setForceVectorOutput( true );
25842586
context.setPainter( p );
25852587

25862588
p->save();

‎src/core/composer/qgscomposershape.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ void QgsComposerShape::drawShapeUsingSymbol( QPainter* p )
175175
ms.setOutputDpi( p->device()->logicalDpiX() );
176176
QgsRenderContext context = QgsRenderContext::fromMapSettings( ms );
177177
context.setPainter( p );
178+
context.setForceVectorOutput( true );
178179
p->scale( 1 / dotsPerMM, 1 / dotsPerMM ); // scale painter from mm to dots
179180

180181
//generate polygon to draw

‎src/core/composer/qgspaperitem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ void QgsPaperItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* ite
163163
ms.setOutputDpi( painter->device()->logicalDpiX() );
164164
QgsRenderContext context = QgsRenderContext::fromMapSettings( ms );
165165
context.setPainter( painter );
166+
context.setForceVectorOutput( true );
166167

167168
painter->save();
168169

0 commit comments

Comments
 (0)
Please sign in to comment.