From: Vincent van Ravesteijn Date: Mon, 7 Dec 2009 19:06:15 +0000 (+0000) Subject: Simplify code. X-Git-Tag: 2.0.0~4880 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=99a9d3dd69a72d6b4db3c7e7f9799cd022a0fcab;p=features.git Simplify code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32413 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index cd8fbeb2ed..f78594f54d 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -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); }