Skip to content

Commit d466870

Browse files
committed
Fix jumping map in canvas
This would happen only with overview canvas visible. Found by Mathieu. Replacing the forced repaint() call by more suitable update()
1 parent fffd2fe commit d466870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsmapoverviewcanvas.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class QgsPanningWidget : public QWidget
4949
if ( p == mPoly ) return;
5050
mPoly = p;
5151
setGeometry( p.boundingRect() );
52-
repaint();
52+
update();
5353
}
5454

5555

0 commit comments

Comments
 (0)