Fix Font selector GUI (font encoding) broken in 27ba6f282d.

This commit is contained in:
Günter Milde 2019-04-30 09:34:51 +02:00
parent 74b1b9d86f
commit 337e3ff9a6

View File

@ -4096,7 +4096,7 @@ void GuiDocument::paramsToDialog()
if (nn >= 0) if (nn >= 0)
fontModule->fontsDefaultCO->setCurrentIndex(nn); fontModule->fontsDefaultCO->setCurrentIndex(nn);
if (bp_.fontenc == "auto-legacy" || bp_.fontenc == "auto-legacy-plain") { if (bp_.fontenc == "auto" || bp_.fontenc == "default") {
fontModule->fontencCO->setCurrentIndex( fontModule->fontencCO->setCurrentIndex(
fontModule->fontencCO->findData(toqstr(bp_.fontenc))); fontModule->fontencCO->findData(toqstr(bp_.fontenc)));
fontModule->fontencLE->setEnabled(false); fontModule->fontencLE->setEnabled(false);