Skip to content

Commit d85320b

Browse files
author
Marco Hugentobler
committed
Fix rotation of simple marker if cache is not used (ticket #3778)
1 parent b656ebd commit d85320b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ void QgsSimpleMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV
374374
{
375375
QMatrix transform;
376376

377-
// bool hasDataDefinedRotation = context.renderHints() & QgsSymbolV2::DataDefinedRotation;
377+
bool hasDataDefinedRotation = context.renderHints() & QgsSymbolV2::DataDefinedRotation;
378378
bool hasDataDefinedSize = context.renderHints() & QgsSymbolV2::DataDefinedSizeScale;
379379

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

391391
// rotate if necessary
392-
if ( mAngle != 0 )
392+
if ( mAngle != 0 && hasDataDefinedRotation )
393393
{
394394
transform.rotate( mAngle );
395395
}

0 commit comments

Comments
 (0)