[LyX/master] Modify debug messages
Koji Yokota <[email protected]> Fri, 08 May 2026 13:35:50 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 2c70cdad36452879ec36f6f4c3dd76e5ae49c8db Author: Koji Yokota <[email protected]> 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; } -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs