Commit 56f885ff authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Fix warning when attempting to auto size rows after a font change

2000-05-19  Jody Goldberg <jgoldberg@home.com>

	* src/colrow.c (cb_set_row_height) : Only set the height if it
	  changed.
parent 7c57a4f3
2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/colrow.c (cb_set_row_height) : Only set the height if it
changed.
* src/application.c (application_set_selected_sheet) : No need to
clear the X selection if we already own it.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/colrow.c (cb_set_row_height) : Only set the height if it
changed.
* src/application.c (application_set_selected_sheet) : No need to
clear the X selection if we already own it.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/colrow.c (cb_set_row_height) : Only set the height if it
changed.
* src/application.c (application_set_selected_sheet) : No need to
clear the X selection if we already own it.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/colrow.c (cb_set_row_height) : Only set the height if it
changed.
* src/application.c (application_set_selected_sheet) : No need to
clear the X selection if we already own it.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/colrow.c (cb_set_row_height) : Only set the height if it
changed.
* src/application.c (application_set_selected_sheet) : No need to
clear the X selection if we already own it.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/colrow.c (cb_set_row_height) : Only set the height if it
changed.
* src/application.c (application_set_selected_sheet) : No need to
clear the X selection if we already own it.
......
2000-05-19 Jody Goldberg <jgoldberg@home.com>
* src/colrow.c (cb_set_row_height) : Only set the height if it
changed.
* src/application.c (application_set_selected_sheet) : No need to
clear the X selection if we already own it.
......
......@@ -131,7 +131,8 @@ cb_set_row_height (Sheet *sheet, ColRowInfo *info, void *dummy)
/* If the size was not set by the user then auto resize */
if (!info->hard_size) {
int const new_size = sheet_row_size_fit_pixels (sheet, info->pos);
sheet_row_set_size_pixels (sheet, info->pos, new_size, FALSE);
if (new_size > 0)
sheet_row_set_size_pixels (sheet, info->pos, new_size, FALSE);
}
return FALSE;
}
......
......@@ -489,6 +489,7 @@ colrow_tip_setlabel (ItemBar *item_bar, gboolean const is_vertical, int size_pix
static void
item_bar_end_resize (ItemBar *item_bar, int new_size)
{
/* autosizing an empty col/row returns 0 */
if (new_size > 0)
gtk_signal_emit (GTK_OBJECT (item_bar),
item_bar_signals [SIZE_CHANGED],
......@@ -685,9 +686,7 @@ item_bar_event (GnomeCanvasItem *item, GdkEvent *e)
else
new_size = sheet_col_size_fit_pixels (sheet, item_bar->resize_pos);
/* autosizing an empty col/row returns 0 */
if (new_size > 0)
item_bar_end_resize (item_bar, new_size);
item_bar_end_resize (item_bar, new_size);
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment