# HG changeset patch # User Eric Warmenhoven # Date 981122698 0 # Node ID 9774a0a304c41afc2f286cc723fc5352d3568015 # Parent 36c56d591674a47803a3bb685bb519084be1e3a4 [gaim-migrate @ 1471] this was stupid committer: Tailor Script diff -r 36c56d591674 -r 9774a0a304c4 src/gtkimhtml.c --- a/src/gtkimhtml.c Fri Feb 02 13:40:03 2001 +0000 +++ b/src/gtkimhtml.c Fri Feb 02 14:04:58 2001 +0000 @@ -449,26 +449,30 @@ bit = bits->data; chunks = bit->chunks; if (DRAW_IMG (bit)) { - line = chunks->data; - if ((line->x <= x + width) && - (line->y <= y + height) && - (x <= line->x + line->width) && - (y <= line->y + line->height)) - draw_img (imhtml, line); + if (chunks) { + line = chunks->data; + if ((line->x <= x + width) && + (line->y <= y + height) && + (x <= line->x + line->width) && + (y <= line->y + line->height)) + draw_img (imhtml, line); + } } else if (bit->type == TYPE_SEP) { - line = chunks->data; - if ((line->x <= x + width) && - (line->y <= y + height) && - (x <= line->x + line->width) && - (y <= line->y + line->height)) - draw_line (imhtml, line); - - line = chunks->next->data; - if ((line->x <= x + width) && - (line->y <= y + height) && - (x <= line->x + line->width) && - (y <= line->y + line->height)) - draw_text (imhtml, line); + if (chunks) { + line = chunks->data; + if ((line->x <= x + width) && + (line->y <= y + height) && + (x <= line->x + line->width) && + (y <= line->y + line->height)) + draw_line (imhtml, line); + + line = chunks->next->data; + if ((line->x <= x + width) && + (line->y <= y + height) && + (x <= line->x + line->width) && + (y <= line->y + line->height)) + draw_text (imhtml, line); + } } else { while (chunks) { line = chunks->data;