]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Remove the bogus fixme.
[lyx.git] / src / TextMetrics.cpp
index cd8fbeb2edde48bc4d54687168dfc444ccaa20d9..37cf7a799158f9f4dcf3151201e57f555af54f4a 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); 
 }
 
 
@@ -379,7 +377,7 @@ bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos,
 bool TextMetrics::redoParagraph(pit_type const pit)
 {
        Paragraph & par = text_->getPar(pit);
-       // IMPORTANT NOTE: We pass 'false' explicitely in order to not call
+       // IMPORTANT NOTE: We pass 'false' explicitly in order to not call
        // redoParagraph() recursively inside parMetrics.
        Dimension old_dim = parMetrics(pit, false).dim();
        ParagraphMetrics & pm = par_metrics_[pit];