[gaim-migrate @ 1471]

Fri, 02 Feb 2001 14:04:58 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Fri, 02 Feb 2001 14:04:58 +0000
changeset 1461
c117868c525e
parent 1460
c63c0e2b00c1
child 1462
69f0d88fbed3

[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;

mercurial