mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Uncomment code I commented before. Keep the window size instead of
always resiing. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7030 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0f637a6a41
commit
aa9324090e
@ -643,12 +643,11 @@ compute_optimal_width (GnucashSheet *sheet)
|
||||
return DEFAULT_REGISTER_WIDTH;
|
||||
|
||||
style = gnucash_sheet_get_style_from_cursor (sheet, CURSOR_HEADER);
|
||||
|
||||
if (!style)
|
||||
return DEFAULT_REGISTER_WIDTH;
|
||||
|
||||
// if (sheet->window_width >= 0)
|
||||
// return sheet->window_width;
|
||||
if (sheet->window_width >= 0)
|
||||
return sheet->window_width;
|
||||
|
||||
if (!style->dimensions)
|
||||
return DEFAULT_REGISTER_WIDTH;
|
||||
@ -668,13 +667,13 @@ compute_optimal_height (GnucashSheet *sheet)
|
||||
if (!sheet)
|
||||
return DEFAULT_REGISTER_HEIGHT;
|
||||
|
||||
// if (sheet->window_height >= 0)
|
||||
// return sheet->window_height;
|
||||
|
||||
style = gnucash_sheet_get_style_from_cursor (sheet, CURSOR_HEADER);
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user