Skip to content

Commit

Permalink
symbology-ng: restore rotation (followup 1d5712c)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 22, 2013
1 parent 1d5712c commit 5ea75bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
Expand Up @@ -462,6 +462,10 @@ void QgsSimpleMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV
// move to the desired position
transform.translate( point.x() + off.x(), point.y() + off.y() );

bool hasDataDefinedRotation = context.renderHints() & QgsSymbolV2::DataDefinedRotation || angleExpression;
if ( angle != 0 && hasDataDefinedRotation )
transform.rotate( angle );

double size = mSize;
QgsExpression* sizeExpression = expression( "size" );

Expand Down

0 comments on commit 5ea75bd

Please sign in to comment.