[LyX/master] Fix compilation on bionic
Pavel Sanda <[email protected]> Thu, 14 May 2026 17:31:43 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 28da3bb70f6a175f731d7caa619d38866b9bd291 Author: Pavel Sanda <[email protected]> Date: Thu May 14 18:34:11 2026 +0200 Fix compilation on bionic --- src/frontends/qt/GuiInputMethod.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontends/qt/GuiInputMethod.cpp b/src/frontends/qt/GuiInputMethod.cpp index b9d8786824..de20273b76 100644 --- a/src/frontends/qt/GuiInputMethod.cpp +++ b/src/frontends/qt/GuiInputMethod.cpp @@ -821,7 +821,11 @@ int GuiInputMethod::preeditCaretOffset() else line = d->caret_elem_.str.substr(0, d->caret_pos_ - d->caret_elem_.pos); +#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0) return qfm.horizontalAdvance(toqstr(line)); +#else + return qfm.width(toqstr(line)); +#endif } -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs