Skip to content

Commit 22d4d22

Browse files
authoredOct 3, 2017
fix highlight showing when hidden (#5278)
1 parent da4cfd5 commit 22d4d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/qgshighlight.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ void QgsHighlight::paintPolygon( QPainter *p, QgsPolygon polygon )
256256

257257
void QgsHighlight::updatePosition()
258258
{
259-
updateRect();
259+
if ( isVisible() ) updateRect();
Code has comments. Press enter to view.
260260
}
261261

262262
void QgsHighlight::paint( QPainter *p )

0 commit comments

Comments
 (0)
Please sign in to comment.