X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText2.cpp;h=869684ed86ecf19e9c7456f051ffc9a0b5011ba6;hb=4cb209b121430b38606932e31d2659bd7ed57447;hp=bbd30a72d37952cfd6c25924c9c8fdc55dc07ee9;hpb=ba0f28a09b5d2037b836395400e8520801618647;p=lyx.git diff --git a/src/Text2.cpp b/src/Text2.cpp index bbd30a72d3..869684ed86 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -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(),