Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Consider frame width for annotation item minimum size
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13329 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 20, 2010
1 parent 64915d4 commit 9720ee9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsformannotationitem.cpp
Expand Up @@ -145,7 +145,8 @@ QSizeF QgsFormAnnotationItem::minimumFrameSize() const
{
if ( mDesignerWidget )
{
return mDesignerWidget->minimumSize();
QSizeF widgetMinSize = mDesignerWidget->minimumSize();
return QSizeF( 2 * mFrameBorderWidth + widgetMinSize.width(), 2 * mFrameBorderWidth + widgetMinSize.width() );
}
else
{
Expand Down

0 comments on commit 9720ee9

Please sign in to comment.