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.
This commit is contained in:
Jean-Marc Lasgouttes 2015-07-17 12:07:52 +02:00
parent 092647dcb0
commit 4cdd9732d3

View File

@ -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_;
}