[LyX/master] Copy/paste error spotted by Coverity Scan

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Sep 7 13:19:44 UTC 2026


commit f29a2d844be140a68ff0515486b5637a0f28630b
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Mon Sep 7 15:12:48 2026 +0200

    Copy/paste error spotted by Coverity Scan
---
 src/frontends/qt/GuiDocument.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index eae5f727ca..0fc0c16cf9 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -3269,7 +3269,7 @@ void GuiDocument::updateSpecialFontsFromSelection(QTreeWidgetItem * sel, bool co
 		fontSpecialModule->fontSpecialTypewriterOsfCB->setChecked(osf);
 		fontSpecialModule->fontspecTypewriterSpecialLE->setText(opts);
 		if (scale.isEmpty())
-			fontSpecialModule->scaleSpecialSansSB->setValue(100);
+			fontSpecialModule->scaleSpecialTypewriterSB->setValue(100);
 		else
 			fontSpecialModule->scaleSpecialTypewriterSB->setValue(scale.toInt());
 		QList<QTreeWidgetItem *> others = script ? fontSpecialModule->scriptFontsTW->findItems(lname_gui, Qt::MatchExactly)


More information about the lyx-cvs mailing list