Skip to content

Commit

Permalink
Fix #10909 (SVG markers rendered as images in composer)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jul 21, 2014
1 parent ea7343e commit 7d30a74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
Expand Up @@ -1194,7 +1194,6 @@ void QgsSvgMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV2Re
p->translate( point + outputOffset );

bool rotated = !qgsDoubleNear( angle, 0 );
bool drawOnScreen = qgsDoubleNear( context.renderContext().rasterScaleFactor(), 1.0, 0.1 );
if ( rotated )
p->rotate( angle );

Expand Down Expand Up @@ -1230,7 +1229,7 @@ void QgsSvgMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV2Re
bool fitsInCache = true;
bool usePict = true;
double hwRatio = 1.0;
if ( drawOnScreen && !rotated )
if ( !context.renderContext().forceVectorOutput() && !rotated )
{
usePict = false;
const QImage& img = QgsSvgCache::instance()->svgAsImage( path, size, fillColor, outlineColor, outlineWidth,
Expand Down

0 comments on commit 7d30a74

Please sign in to comment.