Skip to content
Permalink
Browse files

Fix rotation of simple marker if cache is not used (ticket #3778)

  • Loading branch information
Marco Hugentobler
Marco Hugentobler committed May 20, 2011
1 parent b656ebd commit d85320b7a2daf87d91afe6f03cf5fb92f5946cb5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
@@ -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
@@ -389,7 +389,7 @@ void QgsSimpleMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV
}

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

0 comments on commit d85320b

Please sign in to comment.
You can’t perform that action at this time.