Skip to content

Commit c6be15e

Browse files
committed
Fix #5344 - square symbol not selectable
1 parent 8e75d4b commit c6be15e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ static QPointF _rotatedOffset( const QPointF& offset, double angle )
3636

3737
QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2( QString name, QColor color, QColor borderColor, double size, double angle )
3838
{
39-
if ( name == "rectangle" )
40-
name = "square";
4139
mName = name;
4240
mColor = color;
4341
mBorderColor = borderColor;
@@ -226,7 +224,7 @@ bool QgsSimpleMarkerSymbolLayerV2::prepareShape()
226224
{
227225
mPolygon.clear();
228226

229-
if ( mName == "square" )
227+
if ( mName == "square" || mName == "rectangle" )
230228
{
231229
mPolygon = QPolygonF( QRectF( QPointF( -1, -1 ), QPointF( 1, 1 ) ) );
232230
return true;

0 commit comments

Comments
 (0)