Mercurial > pidgin
changeset 1461:9774a0a304c4
[gaim-migrate @ 1471]
this was stupid
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 02 Feb 2001 14:04:58 +0000 |
parents | 36c56d591674 |
children | 1ac49082e099 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 23 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- 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;