# HG changeset patch # User Eric Warmenhoven # Date 981122698 0 # Node ID c117868c525e2df62df1a89a05079a287c3d3f6b # Parent c63c0e2b00c120d130c8593e2bda9f836831ab9f [gaim-migrate @ 1471] this was stupid diff -r c63c0e2b00c1 -r c117868c525e 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;