]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
GuiPainter.cpp: correct attempt from r35491
[lyx.git] / src / rowpainter.cpp
index 8dfb1060770c8c152ce8fff3e822635738ed1c46..c1faa9354aa5277db52490fd22ba0fdf49c5feba 100644 (file)
@@ -103,9 +103,6 @@ void RowPainter::paintInset(Inset const * inset, pos_type const pos)
        // requires a full repaint
        bool pi_full_repaint = pi_.full_repaint;
 
-       // FIXME: text_metrics_.width() is only about 1.0857 * mi.base.textwidth
-       pi_.base.textwidth = text_metrics_.width();
-
        // FIXME: We should always use font, see documentation of
        // noFontChange() in Inset.h.
        pi_.base.font = inset->noFontChange() ?
@@ -348,7 +345,7 @@ void RowPainter::paintForeignMark(double orig_x, Language const * lang,
 void RowPainter::paintMisspelledMark(double orig_x, int desc)
 {
        int const y = yo_ + desc;
-       pi_.pain.line(int(orig_x), y, int(x_), y, Color_red, Painter::line_onoffdash, 0.5);
+       pi_.pain.line(int(orig_x), y, int(x_), y, Color_red, Painter::line_onoffdash, 1.0);
 }