Skip to content

Commit

Permalink
Applied fix for #4453 from Leyan Ouyang
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 17, 2012
1 parent d71e001 commit d5e92d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/symbology-ng/qgssymbolv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,14 @@ QgsMarkerSymbolV2::QgsMarkerSymbolV2( QgsSymbolLayerV2List layers )
mLayers.append( new QgsSimpleMarkerSymbolLayerV2() );
}

void QgsMarkerSymbolV2::setAngle( double angle )
void QgsMarkerSymbolV2::setAngle( double ang )
{
double origAngle = angle();
double angleDiff = ang - origAngle;
for ( QgsSymbolLayerV2List::iterator it = mLayers.begin(); it != mLayers.end(); ++it )
{
QgsMarkerSymbolLayerV2* layer = ( QgsMarkerSymbolLayerV2* ) * it;
layer->setAngle( angle );
layer->setAngle( layer->angle() + angleDiff );
}
}

Expand Down

0 comments on commit d5e92d9

Please sign in to comment.