aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2009-04-09 03:47:40 +0000
committerKenichi Handa2009-04-09 03:47:40 +0000
commit12b5576566576351afdfa44d6c1417b1f02b82ab (patch)
tree3706f941196273b6602b88bda429885c32797edc /src
parent483670b590fbb3f0ae2b3380aa9351b2d2e19b2c (diff)
downloademacs-12b5576566576351afdfa44d6c1417b1f02b82ab.tar.gz
emacs-12b5576566576351afdfa44d6c1417b1f02b82ab.zip
(map_charset_chars): For a charset of `superset'
method, fix calculation of code range.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/charset.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f5cc4463bea..49936d11a5f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12009-04-09 Kenichi Handa <handa@m17n.org> 12009-04-09 Kenichi Handa <handa@m17n.org>
2 2
3 * charset.c (map_charset_chars): For a charset of `superset'
4 method, fix calculation of code range.
5
3 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP 6 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4 from the list of extra properties. 7 from the list of extra properties.
5 (font_clear_prop): Be sure to delete `:name' font property. 8 (font_clear_prop): Be sure to delete `:name' font property.
diff --git a/src/charset.c b/src/charset.c
index 54602ebe21d..492849f6868 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -809,8 +809,8 @@ map_charset_chars (c_function, function, arg,
809 809
810 charset = CHARSET_FROM_ID (XFASTINT (XCAR (XCAR (parents)))); 810 charset = CHARSET_FROM_ID (XFASTINT (XCAR (XCAR (parents))));
811 offset = XINT (XCDR (XCAR (parents))); 811 offset = XINT (XCDR (XCAR (parents)));
812 this_from = from - offset; 812 this_from = from > offset ? from - offset : 0;
813 this_to = to - offset; 813 this_to = to > offset ? to - offset : 0;
814 if (this_from < CHARSET_MIN_CODE (charset)) 814 if (this_from < CHARSET_MIN_CODE (charset))
815 this_from = CHARSET_MIN_CODE (charset); 815 this_from = CHARSET_MIN_CODE (charset);
816 if (this_to > CHARSET_MAX_CODE (charset)) 816 if (this_to > CHARSET_MAX_CODE (charset))