From a953fa14e7c0e40e27fe69a77d9711fcd3f6e5f3 Mon Sep 17 00:00:00 2001 From: mhugent Date: Wed, 15 Sep 2010 19:57:10 +0000 Subject: [PATCH] Improve update of canvas item in case of size changes. Maybe fixes bug #2929 git-svn-id: http://svn.osgeo.org/qgis/trunk@14234 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/gui/qgsmapcanvasitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/qgsmapcanvasitem.cpp b/src/gui/qgsmapcanvasitem.cpp index 1a25d4a5734..9468d08e1ef 100644 --- a/src/gui/qgsmapcanvasitem.cpp +++ b/src/gui/qgsmapcanvasitem.cpp @@ -78,10 +78,8 @@ void QgsMapCanvasItem::setRect( const QgsRectangle& rect ) r = r.normalized(); } - // update the point prior to changing its position - update(); - // set position in canvas where the item will have coordinate (0,0) + prepareGeometryChange(); setPos( r.topLeft() ); mItemSize = QSizeF( r.width() + 2, r.height() + 2 );