From 84655a07d846e093441ed4888eaf097c01ea9390 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Tue, 28 Sep 2021 10:32:02 +0200 Subject: [PATCH] Fix crash Lyx crashes on export to pdf if used with sanitizer set to 'unspecified'. Crash found by Scott. Given that if we export without GUI, there is some weirdness here though. 1.) Why does lyx not crash if not using '-fsanitize' compile-option 2.) Why is export to pdf dependent on the screen-resolution --- src/frontends/qt/GuiApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp index 01a646de37..4161db5027 100644 --- a/src/frontends/qt/GuiApplication.cpp +++ b/src/frontends/qt/GuiApplication.cpp @@ -555,7 +555,7 @@ IconInfo iconInfo(FuncRequest const & f, bool unknown, bool rtl) if (unknown) names << "unknown"; - search_mode const mode = theGuiApp()->imageSearchMode(); + search_mode const mode = theGuiApp() ? theGuiApp()->imageSearchMode() : support::must_exist; // The folders where icons are searched for QStringList imagedirs; imagedirs << "images/ipa/" << "images/"; -- 2.39.2