Skip to content
Permalink
Browse files
Improve update of canvas item in case of size changes. Maybe fixes bug
…#2929

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14234 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 15, 2010
1 parent c180618 commit 21b9926ef2235a6337c76af3ec7ab59b76c02b43
Showing with 1 addition and 3 deletions.
  1. +1 −3 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 );

0 comments on commit 21b9926

Please sign in to comment.