]> git.lyx.org Git - lyx.git/commit
Fix potential crash with 32bit ucs4 codepoints
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 24 Nov 2022 00:18:21 +0000 (01:18 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 24 Nov 2022 00:18:54 +0000 (01:18 +0100)
commit08195c1d958eb507b5e3a2e2aa18fd3dc238c287
tree1f052c3f3bac1728583fb2cc846f78f59545c5c4
parent52ea36798268607f0cc1ed76d7289ca868132bf0
Fix potential crash with 32bit ucs4 codepoints

QChar codepoints are 16 bit, so it is not wise to pass blindly a
char_type value to the QChar constructor.

Use the already defined isSpace() helper tht takes care of this issue.

Related to #12519, which is only known to bite with Qt6 for now; this
bug is thus theoretical in 2.3.
src/frontends/qt4/GuiFontMetrics.cpp