emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116000: composite.c (composition_update_it): Fix in


From: Kenichi Handa
Subject: [Emacs-diffs] trunk r116000: composite.c (composition_update_it): Fix indexing of LGSTRING_CHAR (Bug#15984).
Date: Sun, 12 Jan 2014 23:28:02 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116000 [merge]
revision-id: address@hidden
parent: address@hidden
parent: address@hidden
committer: K. Handa <address@hidden>
branch nick: trunk
timestamp: Mon 2014-01-13 08:27:14 +0900
message:
  composite.c (composition_update_it): Fix indexing of LGSTRING_CHAR 
(Bug#15984).
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/composite.c                
composite.c-20091113204419-o5vbwnq5f7feedwu-1728
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-01-11 13:36:06 +0000
+++ b/src/ChangeLog     2014-01-12 23:23:55 +0000
@@ -1,3 +1,8 @@
+2014-01-11  K. Handa  <address@hidden>
+
+       * composite.c (composition_update_it): Fix indexing of
+       LGSTRING_CHAR (Bug#15984).
+
 2014-01-11  Fabrice Popineau  <address@hidden>
 
        * unexw32.c (_start) [__MINGW64__]: Define to __start.

=== modified file 'src/composite.c'
--- a/src/composite.c   2014-01-01 07:43:34 +0000
+++ b/src/composite.c   2014-01-12 23:23:55 +0000
@@ -1412,7 +1412,7 @@
       cmp_it->width = 0;
       for (i = cmp_it->nchars - 1; i >= 0; i--)
        {
-         c = XINT (LGSTRING_CHAR (gstring, i));
+         c = XINT (LGSTRING_CHAR (gstring, cmp_it->from + i));
          cmp_it->nbytes += CHAR_BYTES (c);
          cmp_it->width += CHAR_WIDTH (c);
        }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]