[ci announce] bionic: compile failure
Jürgen Spitzmüller
jspitzm at gmail.com
Fri Jan 24 08:13:16 UTC 2025
Am Donnerstag, dem 23.01.2025 um 22:42 +0000 schrieb
testing at tester.lyx.org:
> GuiInputMethod.cpp: In member function 'std::array<int, 2>
> lyx::frontend::GuiInputMethod::setCaretOffset(lyx::pos_type)':
> GuiInputMethod.cpp:551:26: error: 'class QFontMetrics' has no member
> named 'horizontalAdvance'
> caret_offset[0] = qfm.horizontalAdvance(lastline_str);
QFontMetrics::horizontalAdvance() has been introduced with Qt 5.11.
You need to condition for that and use QFontMetrics::width() for
earlier Qt versions.
--
Jürgen
More information about the lyx-devel
mailing list