Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 21b9926
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gui/qgsmapcanvasitem.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit 21b9926

Please sign in to comment.