use from_ascii on pure ascii.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15277 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-10-08 10:21:23 +00:00
parent 3836ff77f0
commit 816103659e

View File

@ -810,11 +810,11 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
case LFUN_SERVER_GET_FONT: case LFUN_SERVER_GET_FONT:
if (current_font.shape() == LyXFont::ITALIC_SHAPE) if (current_font.shape() == LyXFont::ITALIC_SHAPE)
cur.message(lyx::from_utf8("E")); cur.message(lyx::from_ascii("E"));
else if (current_font.shape() == LyXFont::SMALLCAPS_SHAPE) else if (current_font.shape() == LyXFont::SMALLCAPS_SHAPE)
cur.message(lyx::from_utf8("N")); cur.message(lyx::from_ascii("N"));
else else
cur.message(lyx::from_utf8("0")); cur.message(lyx::from_ascii("0"));
break; break;
case LFUN_SERVER_GET_LAYOUT: case LFUN_SERVER_GET_LAYOUT: