mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix svg marker doesn't render when size is very small
This commit is contained in:
parent
814594f145
commit
c6db18d37c
@ -2013,11 +2013,11 @@ void QgsSvgMarkerSymbolLayer::renderPoint( QPointF point, QgsSymbolRenderContext
|
||||
double hwRatio = 1.0;
|
||||
if ( !context.renderContext().forceVectorOutput() && !rotated )
|
||||
{
|
||||
usePict = false;
|
||||
QImage img = QgsApplication::svgCache()->svgAsImage( path, size, fillColor, strokeColor, strokeWidth,
|
||||
context.renderContext().scaleFactor(), fitsInCache, aspectRatio );
|
||||
if ( fitsInCache && img.width() > 1 )
|
||||
{
|
||||
usePict = false;
|
||||
//consider transparency
|
||||
if ( !qgsDoubleNear( context.opacity(), 1.0 ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user