[composer] Force vector rendering of shape and page symbology (fix #10616)

This commit is contained in:
Nyall Dawson 2014-06-18 20:11:32 +10:00
parent 7af7b88c99
commit d06a1fe373
3 changed files with 4 additions and 0 deletions

View File

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

View File

@ -175,6 +175,7 @@ void QgsComposerShape::drawShapeUsingSymbol( QPainter* p )
ms.setOutputDpi( p->device()->logicalDpiX() );
QgsRenderContext context = QgsRenderContext::fromMapSettings( ms );
context.setPainter( p );
context.setForceVectorOutput( true );
p->scale( 1 / dotsPerMM, 1 / dotsPerMM ); // scale painter from mm to dots
//generate polygon to draw

View File

@ -163,6 +163,7 @@ void QgsPaperItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* ite
ms.setOutputDpi( painter->device()->logicalDpiX() );
QgsRenderContext context = QgsRenderContext::fromMapSettings( ms );
context.setPainter( painter );
context.setForceVectorOutput( true );
painter->save();