Skip to content

Commit 607cd3e

Browse files
authored
Merge pull request #8236 from nyalldawson/marker_fill
Fix svg marker doesn't render when size is very small
2 parents 5f26d1b + cefc8d6 commit 607cd3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,11 +2025,11 @@ void QgsSvgMarkerSymbolLayerV2::renderPoint( QPointF point, QgsSymbolV2RenderCon
20252025
double hwRatio = 1.0;
20262026
if ( !context.renderContext().forceVectorOutput() && !rotated )
20272027
{
2028-
usePict = false;
20292028
const QImage& img = QgsSvgCache::instance()->svgAsImage( path, size, fillColor, outlineColor, outlineWidth,
20302029
context.renderContext().scaleFactor(), context.renderContext().rasterScaleFactor(), fitsInCache );
20312030
if ( fitsInCache && img.width() > 1 )
20322031
{
2032+
usePict = false;
20332033
//consider transparency
20342034
if ( !qgsDoubleNear( context.alpha(), 1.0 ) )
20352035
{

0 commit comments

Comments
 (0)