Simplify code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32413 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-12-07 19:06:15 +00:00
parent f2011d0d20
commit 99a9d3dd69

View File

@ -244,11 +244,9 @@ int TextMetrics::rightMargin(pit_type const pit) const
void TextMetrics::applyOuterFont(Font & font) const
{
Font lf(font_);
lf.fontInfo().reduce(bv_->buffer().params().getFont().fontInfo());
Font tmp(font);
tmp.fontInfo().realize(lf.fontInfo());
font = tmp;
FontInfo lf(font_.fontInfo());
lf.reduce(bv_->buffer().params().getFont().fontInfo());
font.fontInfo().realize(lf);
}