mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
We don't want to write an empty string here. Keep it the default, unless
something else has been provided. (This is only an issue when no spell checkers are detected.) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37234 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
dfb67984f2
commit
c8766b2e42
@ -1468,8 +1468,10 @@ PrefSpellchecker::PrefSpellchecker(GuiPreferences * form)
|
||||
|
||||
void PrefSpellchecker::apply(LyXRC & rc) const
|
||||
{
|
||||
rc.spellchecker = fromqstr(spellcheckerCB->itemData(
|
||||
spellcheckerCB->currentIndex()).toString());
|
||||
string const speller = fromqstr(spellcheckerCB->
|
||||
itemData(spellcheckerCB->currentIndex()).toString());
|
||||
if (!speller.empty())
|
||||
rc.spellchecker = speller;
|
||||
rc.spellchecker_alt_lang = fromqstr(altLanguageED->text());
|
||||
rc.spellchecker_esc_chars = fromqstr(escapeCharactersED->text());
|
||||
rc.spellchecker_accept_compound = compoundWordCB->isChecked();
|
||||
|
Loading…
Reference in New Issue
Block a user