Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8236 from nyalldawson/marker_fill
Fix svg marker doesn't render when size is very small
  • Loading branch information
m-kuhn committed Oct 25, 2018
2 parents 5f26d1b + cefc8d6 commit 607cd3e
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 607cd3e

Please sign in to comment.