Skip to content
Permalink
Browse files

Applied fix for #4453 from Leyan Ouyang

  • Loading branch information
mhugent committed Jun 17, 2012
1 parent d71e001 commit d5e92d9a3b4740030a71a2930958291d7b0cb1a6
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/core/symbology-ng/qgssymbolv2.cpp
@@ -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 );
}
}

0 comments on commit d5e92d9

Please sign in to comment.
You can’t perform that action at this time.