commit 2148310975bfa474f6d5d908c9726a4bd9ad1f13 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Feb 12 14:30:51 2025 +0100
Add assertion to please Coverity Scan --- src/frontends/qt/GuiPainter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/qt/GuiPainter.cpp b/src/frontends/qt/GuiPainter.cpp index f28cbe319b..7a6a9b0de3 100644 --- a/src/frontends/qt/GuiPainter.cpp +++ b/src/frontends/qt/GuiPainter.cpp @@ -366,6 +366,7 @@ void GuiPainter::text(int x, int y, docstring const & s, else if (dir == RtL) setLayoutDirection(Qt::RightToLeft); else setLayoutDirection(Qt::LeftToRight); GuiInputMethod const * gim = dynamic_cast<GuiInputMethod const *>(im); + LATTEST(gim); setPen(gim->charFormat(char_format_index).foreground().color()); setBackgroundMode(Qt::OpaqueMode); setBackground(gim->charFormat(char_format_index).background()); -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs