Skip to content
Permalink
Browse files

Fix svg marker doesn't render when size is very small

  • Loading branch information
nyalldawson committed Oct 16, 2018
1 parent 814594f commit c6db18d37cadbfeea7aaa691f4fbeefa750db891
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgsmarkersymbollayer.cpp
@@ -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 ) )
{

0 comments on commit c6db18d

Please sign in to comment.
You can’t perform that action at this time.