Fri, 02 Feb 2001 14:04:58 +0000
[gaim-migrate @ 1471]
this was stupid
| src/gtkimhtml.c | file | annotate | diff | comparison | revisions |
--- 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;