Skip to content

Commit d8c4473

Browse files
committedOct 15, 2018
Make QgsRubberBand fillColor a Q_PROPERTY
1 parent 4607930 commit d8c4473

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/gui/qgsrubberband.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ void QgsRubberBand::setColor( const QColor &color )
5151

5252
void QgsRubberBand::setFillColor( const QColor &color )
5353
{
54+
if ( mBrush.color() == color )
55+
return;
56+
5457
mBrush.setColor( color );
5558
}
5659

0 commit comments

Comments
 (0)
Please sign in to comment.