From: Kornel Benko Date: Tue, 28 Sep 2021 08:32:02 +0000 (+0200) Subject: Fix crash X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=84655a07d846e093441ed4888eaf097c01ea9390;p=features.git 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 --- 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/";