This routine should always return the minimal height the widget will

accept, not the current height of the widget.  Returning the current
height causes all sorts of problems such as windows that are
impossible to resize down.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11826 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-04 05:48:06 +00:00
parent b7d7e6a9f8
commit b8641ed7ea

View File

@ -665,9 +665,6 @@ compute_optimal_height (GnucashSheet *sheet)
if (!style)
return DEFAULT_REGISTER_HEIGHT;
if (sheet->window_height >= 0)
return sheet->window_height;
cd = gnucash_style_get_cell_dimensions (style, 0, 0);
if (cd == NULL)
return DEFAULT_REGISTER_HEIGHT;