Skip to content
Permalink
Browse files

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 607cd3e3aa47133537bc44dff1e7b5893af55751
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 607cd3e

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