X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.cpp;h=f78594f54dad9860e42a6f2f05aedc13224edb32;hb=bb80bd78f981c888efcc030168bd4e366b0ca6cd;hp=336d75f5363ede124ed391146b1bc43aad5b6f93;hpb=3852f3298f56471e9af7ea28b9daed3c040178a4;p=lyx.git diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 336d75f536..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()); - lf.fontInfo().realize(font.fontInfo()); - lf.setLanguage(font.language()); - font = lf; + FontInfo lf(font_.fontInfo()); + lf.reduce(bv_->buffer().params().getFont().fontInfo()); + font.fontInfo().realize(lf); }