Skip to content

Commit

Permalink
Fix rotation of simple marker if cache is not used (ticket #3778)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Hugentobler committed May 20, 2011
1 parent b656ebd commit d85320b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
Expand Up @@ -374,7 +374,7 @@ void QgsSimpleMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV
{
QMatrix transform;

// bool hasDataDefinedRotation = context.renderHints() & QgsSymbolV2::DataDefinedRotation;
bool hasDataDefinedRotation = context.renderHints() & QgsSymbolV2::DataDefinedRotation;
bool hasDataDefinedSize = context.renderHints() & QgsSymbolV2::DataDefinedSizeScale;

// move to the desired position
Expand All @@ -389,7 +389,7 @@ void QgsSimpleMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV
}

// rotate if necessary
if ( mAngle != 0 )
if ( mAngle != 0 && hasDataDefinedRotation )
{
transform.rotate( mAngle );
}
Expand Down

0 comments on commit d85320b

Please sign in to comment.