mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
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
This commit is contained in:
parent
0c09a41d2d
commit
a953fa14e7
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user