]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
Norwegian Intro.lyx: - fix image paths to make it compilable
[lyx.git] / src / rowpainter.cpp
index a0b554e676ae0e5a59a1934c6f602af1a3b22ad2..16c3ad7250f7c20bf89693468a68ccfd162a0e98 100644 (file)
@@ -328,6 +328,13 @@ 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);
@@ -355,6 +362,9 @@ void RowPainter::paintFromPos(pos_type & vpos)
        }
 
        paintForeignMark(orig_x, orig_font.language());
+
+       if (orig_font.isMisspelled())
+               paintMisspelledMark(orig_x, 3);
 }