changeset 2348:dd5f18429dd9

[gaim-migrate @ 2361] this renders selection better. i still need to rewrite the parser though. parsing for smileys is currently the most expensive thing but the rest of the parser could use some work (parsing tags twice is not good). committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 22 Sep 2001 10:36:29 +0000
parents 182a4f8b1333
children 60c716c32c40
files src/gtkimhtml.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Sat Sep 22 10:08:19 2001 +0000
+++ b/src/gtkimhtml.c	Sat Sep 22 10:36:29 2001 +0000
@@ -771,7 +771,7 @@
 					draw_img (imhtml, chunk);
 				else if ((bit->type == TYPE_SEP) && (bit->chunks->data == chunk))
 					draw_line (imhtml, chunk);
-				else
+				else if (chunk->width)
 					draw_text (imhtml, chunk);
 			}
 
@@ -1017,7 +1017,7 @@
 					draw_img (imhtml, chunk);
 				else if ((bit->type == TYPE_SEP) && (bit->chunks->data == chunk))
 					draw_line (imhtml, chunk);
-				else
+				else if (chunk->width)
 					draw_text (imhtml, chunk);
 				redraw = FALSE;
 			}
@@ -1059,7 +1059,7 @@
 		else if ((bit->type == TYPE_SEP) && 
 			 (bit->chunks->data == chunk))
 			draw_line (imhtml, chunk);
-		else
+		else if (chunk->width)
 			draw_text (imhtml, chunk);
 	}
 }