OSDN Git Service

call ubrk_following() and ubrk_preceding() with the current QTextBoundaryFinder position
authorIvailo Monev <xakepa10@gmail.com>
Sat, 26 Nov 2022 09:03:16 +0000 (11:03 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 26 Nov 2022 09:03:16 +0000 (11:03 +0200)
commit967b3fab8716a2e2cc68fd3f0b07c3b6d2c5e7c5
treee3117586ff45e06ac3805ba183e83c68f2638005
parenta6ff51bb74c94eaca6a4b7a2dc4eb36e26002a38
call ubrk_following() and ubrk_preceding() with the current QTextBoundaryFinder position

I remember ubrk_following() and ubrk_preceding() causing a crash if the
position is not within the text bounds so leaving the -1 checks just in
case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/tools/qtextboundaryfinder.cpp