mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
44983a3ef6
commit
b1eb818026
@ -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:
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user