Skip to content

Commit

Permalink
Fix svg marker doesn't render when size is very small
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 16, 2018
1 parent 814594f commit c6db18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgsmarkersymbollayer.cpp
Expand Up @@ -2013,11 +2013,11 @@ void QgsSvgMarkerSymbolLayer::renderPoint( QPointF point, QgsSymbolRenderContext
double hwRatio = 1.0;
if ( !context.renderContext().forceVectorOutput() && !rotated )
{
usePict = false;
QImage img = QgsApplication::svgCache()->svgAsImage( path, size, fillColor, strokeColor, strokeWidth,
context.renderContext().scaleFactor(), fitsInCache, aspectRatio );
if ( fitsInCache && img.width() > 1 )
{
usePict = false;
//consider transparency
if ( !qgsDoubleNear( context.opacity(), 1.0 ) )
{
Expand Down

0 comments on commit c6db18d

Please sign in to comment.