[QGIS Commit] r14234 - trunk/qgis/src/gui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Wed Sep 15 15:57:10 EDT 2010
Author: mhugent
Date: 2010-09-15 19:57:10 +0000 (Wed, 15 Sep 2010)
New Revision: 14234
Modified:
trunk/qgis/src/gui/qgsmapcanvasitem.cpp
Log:
Improve update of canvas item in case of size changes. Maybe fixes bug #2929
Modified: trunk/qgis/src/gui/qgsmapcanvasitem.cpp
===================================================================
--- trunk/qgis/src/gui/qgsmapcanvasitem.cpp 2010-09-15 18:43:02 UTC (rev 14233)
+++ trunk/qgis/src/gui/qgsmapcanvasitem.cpp 2010-09-15 19:57:10 UTC (rev 14234)
@@ -78,10 +78,8 @@
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 );
More information about the QGIS-commit
mailing list