From 99a9d3dd69a72d6b4db3c7e7f9799cd022a0fcab Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 7 Dec 2009 19:06:15 +0000 Subject: [PATCH] Simplify code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32413 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextMetrics.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); } -- 2.39.2