commit 8335e373a71c611a1461741fa5e1dceff78d89c1
Author: Koji Yokota <[email protected]>
Date: Thu Jul 24 20:44:09 2025 +0900
Fix SIGSEGV bug (thanks Kornel)
---
src/frontends/qt/GuiInputMethod.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiInputMethod.cpp
b/src/frontends/qt/GuiInputMethod.cpp
index eeddff1997..4b0c4cb34d 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -140,7 +140,7 @@ void GuiInputMethod::onLocaleChanged()
const std::string im_locale_code =
fromqstr(d->sys_im_->locale().name());
const Language * lang = languages.getFromCode(im_locale_code);
- d->im_off_in_math_ = lang->inputMethodOffInMath();
+ d->im_off_in_math_ = lang != nullptr ? lang->inputMethodOffInMath() :
false;
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs