commit c68be9a9be4b397825bf2b9844d25ad79f03dc96 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Nov 26 11:04:33 2020 +0100
Improve some debug messages The current code did not give much information. I am not sure why the <<FontInfo operator is not defined in FontInfo.h, but I figured that it was not necessary to understand that now. --- src/Font.h | 3 +++ src/frontends/qt/GuiFontLoader.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Font.h b/src/Font.h index fdcdb7d..b59f015 100644 --- a/src/Font.h +++ b/src/Font.h @@ -119,6 +119,9 @@ private: mutable bool open_encoding_; }; +/// +std::ostream & operator<<(std::ostream & os, FontInfo const & f); + /// inline diff --git a/src/frontends/qt/GuiFontLoader.cpp b/src/frontends/qt/GuiFontLoader.cpp index 80d45f6..a2d6d98 100644 --- a/src/frontends/qt/GuiFontLoader.cpp +++ b/src/frontends/qt/GuiFontLoader.cpp @@ -14,7 +14,7 @@ #include "GuiFontLoader.h" #include "FontLoader.h" -#include "FontInfo.h" +#include "Font.h" #include "GuiFontMetrics.h" #include "qt_helpers.h" @@ -129,8 +129,8 @@ GuiFontInfo & fontinfo(FontInfo const & f) (f.size() < NUM_SIZE); if (!fontIsRealized) { // We can reset the font to something sensible in release mode. + LYXERR0("Unrealized font!" << f); LATTEST(false); - LYXERR0("Unrealized font!"); FontInfo f2 = f; f2.realize(sane_font); GuiFontInfo * & fi = fontinfo_ptr(f2); -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs