From: handa Date: Tue, 12 Oct 2004 12:24:21 +0000 (+0000) Subject: (alloc_gstring): Fix previous change. X-Git-Tag: REL-1-2-0~125 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4500e37148c7af0a05661dbf6dc29a9dfdca702;p=m17n%2Fm17n-lib.git (alloc_gstring): Fix previous change. --- diff --git a/src/draw.c b/src/draw.c index aead2d6..a9866f8 100644 --- a/src/draw.c +++ b/src/draw.c @@ -1456,9 +1456,9 @@ alloc_gstring (MFrame *frame, MText *mt, int pos, MDrawControl *control, APPEND_GLYPH (gstring, g_tmp); APPEND_GLYPH (gstring, g_tmp); APPEND_GLYPH (gstring, g_tmp); - gstring->glyphs[1].type = GLYPH_CHAR; - gstring->glyphs[1].c = ' '; - gstring->glyphs[1].code = ' '; + gstring->glyphs[1].type = GLYPH_SPACE; + gstring->glyphs[1].c = '\n'; + gstring->glyphs[1].code = '\n'; } gstring->from = pos; g = MGLYPH (0); @@ -1467,7 +1467,6 @@ alloc_gstring (MFrame *frame, MText *mt, int pos, MDrawControl *control, g++; g->rface = frame->rface; g->pos = pos++, g->to = pos; - g->c = '\n', g->code = '\n'; g++; g->rface = frame->rface; g->pos = g->to = pos;