[evolution-patches] [gtkhtml] fix for spell error rendering (was broken for tabs and multi item text slaves)
- From: Radek Doulík <rodo novell com>
- To: Patches <evolution-patches ximian com>
- Cc: Rodney Dawes <dobey novell com>,	Rodrigo Moya <rodrigo novell com>
- Subject: [evolution-patches] [gtkhtml] fix for spell error rendering (was broken for tabs and multi item text slaves)
- Date: Tue, 15 Feb 2005 08:27:47 +0100
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.2092
diff -u -p -r1.2092 ChangeLog
--- ChangeLog	11 Feb 2005 15:40:25 -0000	1.2092
+++ ChangeLog	15 Feb 2005 07:15:34 -0000
@@ -1,3 +1,8 @@
+2005-02-15  Radek Doulik  <rodo novell com>
+
+	* htmltextslave.c (draw_text): scale down run_width to engine
+	coordinates
+
 2005-02-11  Radek Doulik  <rodo novell com>
 
 	* htmlclueflow.c (plain_padding): append/prepend space to cite string
Index: htmltextslave.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmltextslave.c,v
retrieving revision 1.185
diff -u -p -r1.185 htmltextslave.c
--- htmltextslave.c	26 Jan 2005 22:07:29 -0000	1.185
+++ htmltextslave.c	15 Feb 2005 07:15:43 -0000
@@ -828,7 +828,7 @@ draw_text (HTMLTextSlave *self,
 												     p, HTMLSpellErrorColor)->color);
 				        /* printf ("spell error: %s\n", html_text_get_text (slave->owner, off)); */
 			
-					html_painter_draw_spell_error (p, obj->x + tx + run_width + html_painter_pango_to_engine (p, start_x),
+					html_painter_draw_spell_error (p, obj->x + tx + html_painter_pango_to_engine (p, run_width + start_x),
 								       obj->y + ty + get_ys (self->owner, p), html_painter_pango_to_engine (p, width));
 				}
 			}
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]