From 9a67491a3fbfcf15de4dabe9418f7d4f04fa8512 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 26 Nov 2008 18:47:52 +0000 Subject: [PATCH] Make LFUN_FONT_ITAL actually do something. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27712 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Text3.cpp b/src/Text3.cpp index 8a181f80c0..ee7865cfa8 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1582,6 +1582,13 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) break; } + case LFUN_FONT_ITAL: { + Font font(ignore_font, ignore_language); + font.fontInfo().setShape(ITALIC_SHAPE); + toggleAndShow(cur, this, font); + break; + } + case LFUN_FONT_BOLD: case LFUN_FONT_BOLDSYMBOL: { Font font(ignore_font, ignore_language); @@ -2104,6 +2111,10 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, flag.setOnOff(fontinfo.emph() == FONT_ON); break; + case LFUN_FONT_ITAL: + flag.setOnOff(fontinfo.shape() == ITALIC_SHAPE); + break; + case LFUN_FONT_NOUN: flag.setOnOff(fontinfo.noun() == FONT_ON); break;