tdf#147583 sw find: fix backwards search for emptyPara/endOfPara
commit2f5b9916baaf0017ece84bf867a9e9acfe86d61a
authorJustin Luth <justin.luth@collabora.com>
Sat, 16 Mar 2024 00:01:39 +0000 (15 20:01 -0400)
committerMiklos Vajna <vmiklos@collabora.com>
Tue, 19 Mar 2024 07:57:27 +0000 (19 08:57 +0100)
tree4c405d56b6c0ab95c0d8f5a3ff7d0f997975f5ce
parent60b39486660f238fd4385a9cab48a396ed15a155
tdf#147583 sw find: fix backwards search for emptyPara/endOfPara

A comment added 10 years ago thought that it had never worked.

The very last paragraph end cannot be selected manually,
and so of course it can't work in find either.
It didn't work earlier either.

Everything goes ballistic if searching inside comments,
but that would be handled elsewhere anyway I guess.
It didn't work earlier either.

Keeping the search "inside the selection" didn't work earlier either.
That should be fixed now.

make CppunitTest_sw_uiwriter7 \
    CPPUNIT_TEST_NAME=testTdf147583_backwardSearch

Change-Id: I48a72084d277b8c270255de9296a2743162937cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164892
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164982
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
sw/qa/extras/uiwriter/data/tdf147583_backwardSearch.odt [new file with mode: 0644]
sw/qa/extras/uiwriter/uiwriter7.cxx
sw/source/core/crsr/findtxt.cxx