# HG changeset patch # User Rob Flynn # Date 995343941 0 # Node ID 0fd338304759867c5341c0c36c29e0a3730d1b3f # Parent c0994df574434d6a9849e3e8af9400165ea54ac4 [gaim-migrate @ 2081] I was experiencing a fun little segfault under certainc onditions (when an image was a link and you mouse over it). I created this fix. Remove it if you hate it. committer: Tailor Script diff -r c0994df57443 -r 0fd338304759 src/gtkimhtml.c --- a/src/gtkimhtml.c Sun Jul 15 23:08:48 2001 +0000 +++ b/src/gtkimhtml.c Tue Jul 17 04:25:41 2001 +0000 @@ -1164,8 +1164,11 @@ if ((y + h + + 4) > scr_h) y = y - imhtml->tip_bit->font->ascent + imhtml->tip_bit->font->descent; - else - y = y + imhtml->tip_bit->font->ascent + imhtml->tip_bit->font->descent; + else + if (imhtml->tip_bit->font) + y = y + imhtml->tip_bit->font->ascent + imhtml->tip_bit->font->descent; + else + y = y + style->font->ascent + style->font->descent; gtk_widget_set_usize (imhtml->tip_window, w, h); gtk_widget_set_uposition (imhtml->tip_window, x, y);