]> git.lyx.org Git - features.git/blobdiff - src/text.C
Added copy constructor to inset.h and used it in most insets which permit
[features.git] / src / text.C
index c6b00c4e65df2b6b455a3ef65f8d1c09ba093a93..11de551bbaa0848f75f7ea866d025038c46d7325 100644 (file)
@@ -361,8 +361,8 @@ bool LyXText::isBoundary(Buffer const * buf, Paragraph * par,
 
 
 void LyXText::draw(BufferView * bview, Row const * row,
-                  Paragraph::size_type & vpos,
-                  int offset, float & x, bool cleared)
+                   Paragraph::size_type & vpos,
+                   int offset, float & x, bool cleared)
 {
        Painter & pain = bview->painter();
        
@@ -448,10 +448,10 @@ void LyXText::draw(BufferView * bview, Row const * row,
                ++vpos;
 
                if (lyxrc.mark_foreign_language &&
+                       font.language() != ignore_language &&
                    font.language() != bview->buffer()->params.language) {
                        int const y = offset + row->height() - 1;
-                       pain.line(int(tmpx), y, int(x), y,
-                                 LColor::language);
+                       pain.line(int(tmpx), y, int(x), y, LColor::language);
                }
 
                return;