]> git.lyx.org Git - features.git/blobdiff - src/text.C
This should clean up the language stuff a bit and a small new check for
[features.git] / src / text.C
index 11de551bbaa0848f75f7ea866d025038c46d7325..303559a852df35b30ee1918ea837e2be14864e92 100644 (file)
@@ -564,6 +564,11 @@ void LyXText::draw(BufferView * bview, Row const * row,
                x += lyxfont::width(textstring, font);
        }
 
+#ifdef WITH_WARNINGS
+       if ((font.language() == inherit_language) ||
+               (font.language() == ignore_language))
+               lyxerr << "No this shouldn't happen!\n";
+#endif
        if (lyxrc.mark_foreign_language &&
            font.language() != bview->buffer()->params.language) {
                int const y = offset + row->height() - 1;