Skip to content

Commit 76f9c4d

Browse files
committed
Fix for wrong symbol scaling if symbol size is defined in map units and symbol size below one pixel
1 parent cb3ba88 commit 76f9c4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,10 @@ void QgsSvgMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV2Re
556556
p->translate( point + outputOffset );
557557

558558
int size = ( int )( context.outputLineWidth( mSize ) );
559+
if ( size < 1 ) //don't render symbols with size below one pixel
560+
{
561+
return;
562+
}
559563

560564
if ( mAngle != 0 )
561565
p->rotate( mAngle );

0 commit comments

Comments
 (0)