changeset 108784:009ef331a2bc

Fix for finding a static composition.
author Kenichi Handa <handa@etlken>
date Wed, 26 May 2010 10:14:51 +0900
parents 3eac08e0e4ee
children 9b696f89bbd3 023730733576
files src/ChangeLog src/composite.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed May 26 09:36:51 2010 +0900
+++ b/src/ChangeLog	Wed May 26 10:14:51 2010 +0900
@@ -1,3 +1,8 @@
+2010-05-26  Kenichi Handa  <handa@m17n.org>
+
+	* composite.c (composition_compute_stop_pos): Fix condition for
+	backward scanning.
+
 2010-05-25  Glenn Morris  <rgm@gnu.org>
 
 	* Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
--- a/src/composite.c	Wed May 26 09:36:51 2010 +0900
+++ b/src/composite.c	Wed May 26 10:14:51 2010 +0900
@@ -1124,7 +1124,7 @@
 	    }
 	}
     }
-  else
+  else if (charpos > endpos)
     {
       /* Search backward for a pattern that may be composed and the
 	 position of (possibly) the last character of the match is