]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
Paragraph::inInset() shall not be used if the owner inset was not initialized. Make...
[lyx.git] / src / rowpainter.cpp
index 45552501442fc01e01af3b1cc66f81e1f76382c5..98e79de4980cd3a69f8731fda85e112f845d5cb7 100644 (file)
@@ -95,7 +95,7 @@ void RowPainter::paintInset(Inset const * inset, pos_type const pos)
 {
        Font const font = text_metrics_.displayFont(pit_, pos);
 
-       LASSERT(inset, /**/);
+       LASSERT(inset, return);
        // Backup full_repaint status because some insets (InsetTabular)
        // requires a full repaint
        bool pi_full_repaint = pi_.full_repaint;
@@ -338,13 +338,6 @@ void RowPainter::paintForeignMark(double orig_x, Language const * lang,
 }
 
 
-void RowPainter::paintMisspelledMark(double orig_x, int desc)
-{
-       int const y = yo_ + desc;
-       pi_.pain.wavyHorizontalLine(int(orig_x), y, int(x_) - int(orig_x), Color_red);
-}
-
-
 void RowPainter::paintFromPos(pos_type & vpos)
 {
        pos_type const pos = bidi_.vis2log(vpos);
@@ -372,8 +365,6 @@ void RowPainter::paintFromPos(pos_type & vpos)
        }
 
        paintForeignMark(orig_x, orig_font.language());
-       if (orig_font.isMisspelled())
-               paintMisspelledMark(orig_x, 3);
 }