From 4cdd9732d3f29f212d6abda019e3cf88623272df Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 17 Jul 2015 12:07:52 +0200 Subject: [PATCH] Fix logic error in on-screen font shape This made text in smallcaps+emph display as upright instead of plain emph. There is no latex font for smallcaps + emph, but it is not a reason for displaying it wrong. --- src/FontInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FontInfo.h b/src/FontInfo.h index 2b639a926c..c31c7fac77 100644 --- a/src/FontInfo.h +++ b/src/FontInfo.h @@ -114,7 +114,7 @@ public: if (noun_ == FONT_ON) return SMALLCAPS_SHAPE; if (emph_ == FONT_ON) - return (shape_ == UP_SHAPE) ? ITALIC_SHAPE : UP_SHAPE; + return (shape_ == ITALIC_SHAPE) ? UP_SHAPE : ITALIC_SHAPE; return shape_; } -- 2.39.2