From e4500e37148c7af0a05661dbf6dc29a9dfdca702 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 12 Oct 2004 12:24:21 +0000 Subject: [PATCH] (alloc_gstring): Fix previous change. --- src/draw.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 1.7.10.4