comparison src/gtkhtml.c @ 896:ced01cdf0e33

[gaim-migrate @ 906] lalala, i hate segfaults committer: Tailor Script <tailor@pidgin.im>
author Todd Kulesza <fflewddur>
date Wed, 13 Sep 2000 21:04:34 +0000
parents 81a8fb0a565f
children b2ce6a6a8633
comparison
equal deleted inserted replaced
895:81a8fb0a565f 896:ced01cdf0e33
4334 GList *hbits = html->html_bits; 4334 GList *hbits = html->html_bits;
4335 GtkHtmlBit *hbit; 4335 GtkHtmlBit *hbit;
4336 4336
4337 hbits = g_list_find(hbits, start); 4337 hbits = g_list_find(hbits, start);
4338 4338
4339 while (TRUE) 4339 while (hbits)
4340 { 4340 {
4341 hbit = hbits->data; 4341 hbit = hbits->data;
4342 if (hbit->font) 4342 if (hbit->font)
4343 height = gdk_text_height(hbit->font, "C", 1); 4343 height = gdk_text_height(hbit->font, "C", 1);
4344 4344
4347 if (hbit->newline) 4347 if (hbit->newline)
4348 break; 4348 break;
4349 hbits = hbits->next; 4349 hbits = hbits->next;
4350 } 4350 }
4351 4351
4352 if (max_height == 0)
4353 max_height = gdk_text_height(hbit->font, "C", 1);
4354
4352 return max_height; 4355 return max_height;
4353 } 4356 }