Am Donnerstag, dem 23.01.2025 um 22:42 +0000 schrieb
test...@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
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to