commit 84655a07d846e093441ed4888eaf097c01ea9390
Author: Kornel Benko <[email protected]>
Date:   Tue Sep 28 10:32:02 2021 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt/GuiApplication.cpp 
b/src/frontends/qt/GuiApplication.cpp
index 01a646d..4161db5 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/";
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to