aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2008-09-17 00:39:30 +0000
committerKenichi Handa2008-09-17 00:39:30 +0000
commit5a8d55045442e21a0e12b09a62f5d672b7ea9aeb (patch)
tree056d65dc1be865d6b3232675ea14dc0096eb741c /src
parent1676807bc710c812ae303294ef88501e13453134 (diff)
downloademacs-5a8d55045442e21a0e12b09a62f5d672b7ea9aeb.tar.gz
emacs-5a8d55045442e21a0e12b09a62f5d672b7ea9aeb.zip
(Fcomposition_get_gstring): Make bigger gstring_work if necessary.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/composite.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e19d60dbbb0..6dc57c60af7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-09-17 Kenichi Handa <handa@m17n.org>
2
3 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
4 if necessary.
5
12008-09-16 Kenichi Handa <handa@m17n.org> 62008-09-16 Kenichi Handa <handa@m17n.org>
2 7
3 * coding.c (make_conversion_work_buffer): Avoid calling 8 * coding.c (make_conversion_work_buffer): Avoid calling
diff --git a/src/composite.c b/src/composite.c
index 97524297988..576e0c8a402 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -1496,6 +1496,8 @@ must be ignore. */)
1496 gstring = gstring_lookup_cache (header); 1496 gstring = gstring_lookup_cache (header);
1497 if (! NILP (gstring)) 1497 if (! NILP (gstring))
1498 return gstring; 1498 return gstring;
1499 if (LGSTRING_GLYPH_LEN (gstring_work) < to - from)
1500 gstring_work = Fmake_vector (make_number (to - from + 2), Qnil);
1499 LGSTRING_SET_HEADER (gstring_work, header); 1501 LGSTRING_SET_HEADER (gstring_work, header);
1500 LGSTRING_SET_ID (gstring_work, Qnil); 1502 LGSTRING_SET_ID (gstring_work, Qnil);
1501 fill_gstring_body (gstring_work); 1503 fill_gstring_body (gstring_work);