fix emph style. Needed realShape (uggggh)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5233 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-09-08 05:13:04 +00:00
parent 44983a3ef6
commit b1eb818026
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-09-08 John Levon <levon@movementarian.org>
* qfont_loader.C: fix bug 531 (emph())
2002-09-08 John Levon <levon@movementarian.org>
* QMathDialog.C:

View File

@ -114,7 +114,7 @@ qfont_loader::font_info::font_info(LyXFont const & f)
break;
}
switch (f.shape()) {
switch (f.realShape()) {
case LyXFont::ITALIC_SHAPE:
case LyXFont::SLANTED_SHAPE:
font.setItalic(true);
@ -131,12 +131,12 @@ qfont_loader::font_info const * qfont_loader::getfontinfo(LyXFont const & f)
// FIXME
}
font_info * fi = fontinfo_[f.family()][f.series()][f.shape()][f.size()].get();
font_info * fi = fontinfo_[f.family()][f.series()][f.realShape()][f.size()].get();
if (fi) {
return fi;
} else {
fi = new font_info(f);
fontinfo_[f.family()][f.series()][f.shape()][f.size()].reset(fi);
fontinfo_[f.family()][f.series()][f.realShape()][f.size()].reset(fi);
return fi;
}
}