Skip to content

Commit 5ea75bd

Browse files
committed
symbology-ng: restore rotation (followup 1d5712c)
1 parent 1d5712c commit 5ea75bd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/core/symbology-ng/qgsmarkersymbollayerv2.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,10 @@ void QgsSimpleMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV
462462
// move to the desired position
463463
transform.translate( point.x() + off.x(), point.y() + off.y() );
464464

465+
bool hasDataDefinedRotation = context.renderHints() & QgsSymbolV2::DataDefinedRotation || angleExpression;
466+
if ( angle != 0 && hasDataDefinedRotation )
467+
transform.rotate( angle );
468+
465469
double size = mSize;
466470
QgsExpression* sizeExpression = expression( "size" );
467471

0 commit comments

Comments
 (0)