Skip to content
Permalink
Browse files

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

(cherry picked from commit c6db18d)
  • Loading branch information
nyalldawson committed Oct 16, 2018
1 parent 3e41230 commit e353bdb6ed7aabc3b6d83d142edfcd284071fd89
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
@@ -2025,11 +2025,11 @@ void QgsSvgMarkerSymbolLayerV2::renderPoint( QPointF point, QgsSymbolV2RenderCon
double hwRatio = 1.0;
if ( !context.renderContext().forceVectorOutput() && !rotated )
{
usePict = false;
const QImage& img = QgsSvgCache::instance()->svgAsImage( path, size, fillColor, outlineColor, outlineWidth,
context.renderContext().scaleFactor(), context.renderContext().rasterScaleFactor(), fitsInCache );
if ( fitsInCache && img.width() > 1 )
{
usePict = false;
//consider transparency
if ( !qgsDoubleNear( context.alpha(), 1.0 ) )
{

0 comments on commit e353bdb

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