]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
Speed up convert_captionlayouts. Part of #11200.
[lyx.git] / src / Text2.cpp
index bbd30a72d37952cfd6c25924c9c8fdc55dc07ee9..869684ed86ecf19e9c7456f051ffc9a0b5011ba6 100644 (file)
@@ -347,6 +347,8 @@ void Text::setFont(Cursor & cur, Font const & font, bool toggleall)
                        newfi.setNoun(oldfi.noun() == FONT_OFF ? FONT_ON : FONT_OFF);
                if (newfi.number() == FONT_TOGGLE)
                        newfi.setNumber(oldfi.number() == FONT_OFF ? FONT_ON : FONT_OFF);
+               if (newfi.nospellcheck() == FONT_TOGGLE)
+                       newfi.setNoSpellcheck(oldfi.nospellcheck() == FONT_OFF ? FONT_ON : FONT_OFF);
        }
 
        setFont(cur.bv(), cur.selectionBegin().top(),