# HG changeset patch # User Eric Warmenhoven # Date 977180173 0 # Node ID 7f486375bfd5ce48e9a16683d7e1dc44039586e5 # Parent fbc0cbf24a62c2ee04aae5a391731628c2784df8 [gaim-migrate @ 1304] um committer: Tailor Script diff -r fbc0cbf24a62 -r 7f486375bfd5 src/gtkhtml.c --- a/src/gtkhtml.c Mon Dec 18 18:06:46 2000 +0000 +++ b/src/gtkhtml.c Mon Dec 18 22:56:13 2000 +0000 @@ -1400,14 +1400,21 @@ else if (x < 0) x = 0; - if ((y + h + 4) > scr_h) - y = - y - html->tooltip_hb->font->ascent + - html->tooltip_hb->font->descent; - else - y = - y + html->tooltip_hb->font->ascent + - html->tooltip_hb->font->descent; + if (html->tooltip_hb->font) { + if ((y + h + 4) > scr_h) + y = + y - html->tooltip_hb->font->ascent + + html->tooltip_hb->font->descent; + else + y = + y + html->tooltip_hb->font->ascent + + html->tooltip_hb->font->descent; + } else { + if ((y + h + 4) > scr_h) + y = y - 10 + 4; + else + y = y + 10 + 4; + } gtk_widget_set_usize(html->tooltip_window, w, h); gtk_widget_popup(html->tooltip_window, x, y);