]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
* src/LyXRC.{cpp,h}:
[lyx.git] / src / Text2.cpp
index b0da231c0e4eb9b467595e4824a47f509f9c8d32..2a6abbfb39566c6cc997e9e820d313f1fffe9b50 100644 (file)
@@ -395,7 +395,8 @@ void Text::toggleFree(Cursor & cur, Font const & font, bool toggleall)
 {
        BOOST_ASSERT(this == cur.text());
        // If the mask is completely neutral, tell user
-       if (font == ignore_font) {
+       if (font.fontInfo() == ignore_font && 
+               (font.language() == 0 || font.language() == ignore_language)) {
                // Could only happen with user style
                cur.message(_("No font change defined."));
                return;