]> git.lyx.org Git - features.git/commitdiff
Simplify code.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 7 Dec 2009 19:06:15 +0000 (19:06 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 7 Dec 2009 19:06:15 +0000 (19:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32413 a592a061-630c-0410-9148-cb99ea01b6c8

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); 
 }