Skip to content

Commit

Permalink
Fix #5344 - square symbol not selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 22, 2012
1 parent 8e75d4b commit c6be15e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
Expand Up @@ -36,8 +36,6 @@ static QPointF _rotatedOffset( const QPointF& offset, double angle )

QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2( QString name, QColor color, QColor borderColor, double size, double angle )
{
if ( name == "rectangle" )
name = "square";
mName = name;
mColor = color;
mBorderColor = borderColor;
Expand Down Expand Up @@ -226,7 +224,7 @@ bool QgsSimpleMarkerSymbolLayerV2::prepareShape()
{
mPolygon.clear();

if ( mName == "square" )
if ( mName == "square" || mName == "rectangle" )
{
mPolygon = QPolygonF( QRectF( QPointF( -1, -1 ), QPointF( 1, 1 ) ) );
return true;
Expand Down

0 comments on commit c6be15e

Please sign in to comment.