[LyX/master] Modify debug messages
Koji Yokota
yokota at lyx.org
Fri May 8 13:35:50 UTC 2026
commit 2c70cdad36452879ec36f6f4c3dd76e5ae49c8db
Author: Koji Yokota <yokota at lyx.org>
Date: Fri May 8 21:47:51 2026 +0900
Modify debug messages
---
src/frontends/qt/GuiInputMethod.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/GuiInputMethod.cpp b/src/frontends/qt/GuiInputMethod.cpp
index d3aae50069..281b9b32da 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -934,13 +934,14 @@ QVariant GuiInputMethod::inputMethodQuery(Qt::InputMethodQuery query)
// the starting point of the preedit, so respond with anchor_rect_
// that points the starting point during the editing mode
rect = &d->im_state_.anchor_rect_;
- LYXERR(Debug::KEY,
- " (Composing mode: use anchor_rect_ for ImCursorRectangle)");
} else
rect = &d->im_state_.cursor_rect_;
LYXERR(Debug::KEY, msg << " x:" << rect->x() << " y:" << rect->y()
<< " w:" << rect->width() << " h:" << rect->height());
+ if (d->im_state_.composing_mode_)
+ LYXERR(Debug::KEY,
+ " (Composing mode: use anchor_rect_ for ImCursorRectangle)");
return *rect;
break;
}
@@ -1084,6 +1085,7 @@ docstring GuiInputMethod::inputMethodQueryFlagsAsString(unsigned long int query)
case 0x4000: str += "Qt::ImAnchorRectangle"; break;
case 0x8000: str += "Qt::ImInputItemClipRectangle"; break;
case 0x10000: str += "Qt::ImReadOnly"; break;
+ default: str += std::to_wstring(query);
}
return str;
}
More information about the lyx-cvs
mailing list