]> git.lyx.org Git - features.git/blobdiff - src/TextMetrics.cpp
Fix bug #6113: Customized font color in footnote is not rendered in LyX.
[features.git] / src / TextMetrics.cpp
index 336d75f5363ede124ed391146b1bc43aad5b6f93..cd8fbeb2edde48bc4d54687168dfc444ccaa20d9 100644 (file)
@@ -246,9 +246,9 @@ 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;
+       Font tmp(font); 
+       tmp.fontInfo().realize(lf.fontInfo()); 
+       font = tmp;
 }