changeset 1296:c69938e3b41c

merge
author Jorge Arellano Cid <jcid@dillo.org>
date Tue, 01 Sep 2009 17:34:35 -0400
parents a8db028b337f (current diff) 019d5ca2152f (diff)
children 1b4980dcee36
files
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dw/textblock.cc	Tue Sep 01 17:17:50 2009 -0400
+++ b/dw/textblock.cc	Tue Sep 01 17:34:35 2009 -0400
@@ -2155,9 +2155,10 @@
 
    allocation->x =
       textblock->allocation.x + textblock->lineXOffsetWidget (line);
-   for (int i = line->firstWord; i < index; i++)
-      allocation->x += textblock->words->getRef(i)->size.width;
-
+   for (int i = line->firstWord; i < index; i++) {
+      Word *w = textblock->words->getRef(i);
+      allocation->x += w->size.width + w->effSpace;
+   }
    allocation->y =
       textblock->allocation.y
       + textblock->lineYOffsetWidget (line) + line->ascent - word->size.ascent;