Skip to content
Permalink
Browse files

Fix effects not working for ellipse symbol layers (fix #14661)

  • Loading branch information
nyalldawson committed Apr 16, 2016
1 parent 7967e96 commit 9cc3d7e3be9229489e901116c813eca336d583c8
Showing with 25 additions and 1 deletion.
  1. +25 −1 src/core/symbology-ng/qgsellipsesymbollayerv2.cpp
@@ -348,7 +348,31 @@ void QgsEllipseSymbolLayerV2::stopRender( QgsSymbolV2RenderContext & )

QgsEllipseSymbolLayerV2* QgsEllipseSymbolLayerV2::clone() const
{
return dynamic_cast< QgsEllipseSymbolLayerV2* >( QgsEllipseSymbolLayerV2::create( properties() ) );
QgsEllipseSymbolLayerV2* m = new QgsEllipseSymbolLayerV2();
m->setSymbolName( mSymbolName );
m->setSymbolWidth( mSymbolWidth );
m->setSymbolHeight( mSymbolHeight );
m->setOutlineStyle( mOutlineStyle );
m->setOffset( mOffset );
m->setOffsetUnit( mOffsetUnit );
m->setOffsetMapUnitScale( mOffsetMapUnitScale );
m->setOutlineStyle( mOutlineStyle );
m->setOutlineWidth( mOutlineWidth );
m->setColor( color() );
m->setOutlineColor( mOutlineColor );
m->setSymbolWidthUnit( mSymbolWidthUnit );
m->setSymbolWidthMapUnitScale( mSymbolWidthMapUnitScale );
m->setSymbolHeightUnit( mSymbolHeightUnit );
m->setSymbolHeightMapUnitScale( mSymbolHeightMapUnitScale );
m->setOutlineWidthUnit( mOutlineWidthUnit );
m->setOutlineWidthMapUnitScale( mOutlineWidthMapUnitScale );
m->setAngle( mAngle );
m->setHorizontalAnchorPoint( mHorizontalAnchorPoint );
m->setVerticalAnchorPoint( mVerticalAnchorPoint );

copyDataDefinedProperties( m );
copyPaintEffect( m );
return m;
}

void QgsEllipseSymbolLayerV2::toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap& props ) const

0 comments on commit 9cc3d7e

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