Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix svg marker doesn't render when size is very small
(cherry picked from commit c6db18d)
  • Loading branch information
nyalldawson committed Oct 19, 2018
1 parent 3e41230 commit e353bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
Expand Up @@ -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 ) )
{
Expand Down

0 comments on commit e353bdb

Please sign in to comment.