]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
Further cleanup of InsetFlex, InsetCollapsable and InsetLayout:
[lyx.git] / src / Text2.cpp
index 7768439e5bfc4f100e2a58822f69a787dc7fa2a2..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.fontInfo() == 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;