[LyX/master] Amend dcde026446ec282

Juergen Spitzmueller spitz at lyx.org
Fri Aug 11 08:30:17 UTC 2023


commit 4676a5094452a556d666975f8a5b660bd84db83a
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Aug 11 11:44:35 2023 +0200

    Amend dcde026446ec282
    
    Add missing options update at dialog contruction
---
 src/frontends/qt/GuiDocument.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index 8f71cc6..309b1d8 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -2617,8 +2617,7 @@ void GuiDocument::fontScToggled(bool state)
 
 void GuiDocument::updateExtraOpts()
 {
-	QString font;
-	font = fontModule->fontsRomanCO->getData(
+	QString font = fontModule->fontsRomanCO->getData(
 			fontModule->fontsRomanCO->currentIndex());
 	bool const rm_opts = providesExtraOpts(font);
 	font = fontModule->fontsSansCO->getData(
@@ -2638,8 +2637,7 @@ void GuiDocument::updateExtraOpts()
 
 void GuiDocument::updateFontOptions()
 {
-	QString font;
-	font = fontModule->fontsSansCO->getData(
+	QString font = fontModule->fontsSansCO->getData(
 			fontModule->fontsSansCO->currentIndex());
 	bool scalable = providesScale(font);
 	fontModule->scaleSansSB->setEnabled(scalable);
@@ -4466,6 +4464,8 @@ void GuiDocument::paramsToDialog()
 		sansChanged(fontModule->fontsSansCO->currentIndex());
 		ttChanged(fontModule->fontsTypewriterCO->currentIndex());
 	}
+	// Handle options enabling
+	updateFontOptions();
 
 	if (!bp_.fonts_cjk.empty())
 		fontModule->cjkFontLE->setText(


More information about the lyx-cvs mailing list