[QGIS Commit] r13329 - trunk/qgis/src/gui

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Apr 20 03:55:25 EDT 2010


Author: mhugent
Date: 2010-04-20 03:55:23 -0400 (Tue, 20 Apr 2010)
New Revision: 13329

Modified:
   trunk/qgis/src/gui/qgsformannotationitem.cpp
Log:
Consider frame width for annotation item minimum size

Modified: trunk/qgis/src/gui/qgsformannotationitem.cpp
===================================================================
--- trunk/qgis/src/gui/qgsformannotationitem.cpp	2010-04-19 14:30:59 UTC (rev 13328)
+++ trunk/qgis/src/gui/qgsformannotationitem.cpp	2010-04-20 07:55:23 UTC (rev 13329)
@@ -145,7 +145,8 @@
 {
   if ( mDesignerWidget )
   {
-    return mDesignerWidget->minimumSize();
+    QSizeF widgetMinSize = mDesignerWidget->minimumSize();
+    return QSizeF( 2 * mFrameBorderWidth + widgetMinSize.width(), 2 * mFrameBorderWidth + widgetMinSize.width() );
   }
   else
   {



More information about the QGIS-commit mailing list