X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.cpp;h=f78594f54dad9860e42a6f2f05aedc13224edb32;hb=2098f1d8c20d51e63e670bcdc9da8996068975bf;hp=cd8fbeb2edde48bc4d54687168dfc444ccaa20d9;hpb=5b7a7cca73fc324922f32542af5e64e8ac3bbec1;p=lyx.git 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); }