Fix display of emphasize in slanted text

Fixes bug #12175.
This commit is contained in:
Jean-Marc Lasgouttes 2021-03-07 13:29:21 +01:00
parent bdb006543b
commit 610ea7f4f5

View File

@ -129,7 +129,8 @@ public:
if (noun_ == FONT_ON)
return SMALLCAPS_SHAPE;
if (emph_ == FONT_ON)
return (shape_ == ITALIC_SHAPE) ? UP_SHAPE : ITALIC_SHAPE;
return (shape_ == ITALIC_SHAPE || shape_ == SLANTED_SHAPE)
? UP_SHAPE : ITALIC_SHAPE;
return shape_;
}