]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / TextMetrics.cpp
index cd8fbeb2edde48bc4d54687168dfc444ccaa20d9..f78594f54dad9860e42a6f2f05aedc13224edb32 100644 (file)
@@ -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); 
 }