changeset 2071:0fd338304759

[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 <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Tue, 17 Jul 2001 04:25:41 +0000
parents c0994df57443
children e105da353872
files src/gtkimhtml.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);