Skip to content
Permalink
Browse files
symbology-ng: restore rotation (followup 1d5712c)
  • Loading branch information
jef-n committed Jul 22, 2013
1 parent 1d5712c commit 5ea75bd5f03d11ac4c64670d929b9562b03879e9
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
@@ -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" );

0 comments on commit 5ea75bd

Please sign in to comment.