mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[composer] Force vector rendering of shape and page symbology (fix #10616)
This commit is contained in:
parent
7af7b88c99
commit
d06a1fe373
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user