Skip to content
Permalink
Browse files

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

  • Loading branch information
nyalldawson committed Apr 12, 2016
1 parent 82c7bbe commit 0adae36f08694b19729f842c3b88997f60eeaf30
Showing with 21 additions and 1 deletion.
  1. +21 −1 src/core/symbology-ng/qgsellipsesymbollayerv2.cpp
@@ -362,7 +362,27 @@ 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->setOffsetMapUnitScale( mOffsetMapUnitScale );
m->setOutlineStyle( mOutlineStyle );
m->setPenJoinStyle( mPenJoinStyle );
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 );

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

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

0 comments on commit 0adae36

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