Skip to content

Commit

Permalink
Fix for wrong symbol scaling if symbol size is defined in map units a…
Browse files Browse the repository at this point in the history
…nd symbol size below one pixel
  • Loading branch information
mhugent committed Oct 3, 2011
1 parent cb3ba88 commit 76f9c4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
Expand Up @@ -556,6 +556,10 @@ void QgsSvgMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV2Re
p->translate( point + outputOffset );

int size = ( int )( context.outputLineWidth( mSize ) );
if ( size < 1 ) //don't render symbols with size below one pixel
{
return;
}

if ( mAngle != 0 )
p->rotate( mAngle );
Expand Down

0 comments on commit 76f9c4d

Please sign in to comment.