Return if fontsel->font_index == -1 - that is, if no font is selected.

Mon Jan 29 16:34:28 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
	if fontsel->font_index == -1 - that is, if no font is selected.
	(Should fix #50290)
This commit is contained in:
Owen Taylor
2001-01-29 21:38:10 +00:00
committed by Owen Taylor
parent ff6120f496
commit 46fd718c6b
8 changed files with 47 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
Mon Jan 29 16:34:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
if fontsel->font_index == -1 - that is, if no font is selected.
(Should fix #50290)
Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_remove): When removing an

View File

@@ -1,3 +1,9 @@
Mon Jan 29 16:34:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
if fontsel->font_index == -1 - that is, if no font is selected.
(Should fix #50290)
Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_remove): When removing an

View File

@@ -1,3 +1,9 @@
Mon Jan 29 16:34:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
if fontsel->font_index == -1 - that is, if no font is selected.
(Should fix #50290)
Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_remove): When removing an

View File

@@ -1,3 +1,9 @@
Mon Jan 29 16:34:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
if fontsel->font_index == -1 - that is, if no font is selected.
(Should fix #50290)
Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_remove): When removing an

View File

@@ -1,3 +1,9 @@
Mon Jan 29 16:34:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
if fontsel->font_index == -1 - that is, if no font is selected.
(Should fix #50290)
Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_remove): When removing an

View File

@@ -1,3 +1,9 @@
Mon Jan 29 16:34:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
if fontsel->font_index == -1 - that is, if no font is selected.
(Should fix #50290)
Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_remove): When removing an

View File

@@ -1,3 +1,9 @@
Mon Jan 29 16:34:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
if fontsel->font_index == -1 - that is, if no font is selected.
(Should fix #50290)
Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_remove): When removing an

View File

@@ -1560,10 +1560,14 @@ gtk_font_selection_select_best_size(GtkFontSelection *fontsel)
gchar buffer[32];
GList *selection;
gint type_filter;
#ifdef FONTSEL_DEBUG
g_message("In select_best_size\n");
#endif
if (fontsel->font_index == -1)
return;
font = &fontsel_info->font_info[fontsel->font_index];
styles = &fontsel_info->font_styles[font->style_index];
style = &styles[fontsel->style];