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@13329 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 20, 2010
1 parent 61ecac3 commit a514b0f
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 a514b0f

Please sign in to comment.