summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMorten Welinder <terra@gnome.org>2004-07-07 17:41:38 +0000
committerMorten Welinder <mortenw@src.gnome.org>2004-07-07 17:41:38 +0000
commit93e458e87232baec8c4227349a3cb05e901a4b99 (patch)
tree0d95e5be079817fcad4b869c3ce47370eb0ccfbc /pango
parent30e38994a8bb619fe34529442bb50f2aed13ca32 (diff)
downloadpango-93e458e87232baec8c4227349a3cb05e901a4b99.tar.gz
Add letter spacing correction to the last character, not the one just
2004-07-07 Morten Welinder <terra@gnome.org> * pango/pango-layout.c (process_item): Add letter spacing correction to the last character, not the one just beyond the table. (#145517, self.)
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 9daa121e..2d43dfab 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -2765,7 +2765,7 @@ process_item (PangoLayout *layout,
* account it all on the last
*/
if (item->num_chars > 0)
- state->log_widths[item->num_chars] += state->properties.letter_spacing;
+ state->log_widths[item->num_chars - 1] += state->properties.letter_spacing;
}
retry_break: