related tdf#147583 sw find: fix backwards search for string at end of para
commit7a7df4c0ea28e460ac6781d54f7da95a19355dde
authorJustin Luth <justin.luth@collabora.com>
Tue, 19 Mar 2024 19:28:32 +0000 (19 15:28 -0400)
committerAron Budea <aron.budea@collabora.com>
Thu, 28 Mar 2024 12:16:56 +0000 (28 22:46 +1030)
tree2866a58a0a56fb79b0235aeb8342b05f3ba99aa9
parentd8ff9e1e259f7b11940f76d1055bce3dd44f0844
related tdf#147583 sw find: fix backwards search for string at end of para

Prior to this fix, it was finding every single character in the document
when searching for ".$".

Interestingly, the unit test worked even before the patch.
Not sure how that could be possible...

make CppunitTest_sw_uiwriter7 \
    CPPUNIT_TEST_NAME=testTdf147583_backwardSearch

Change-Id: I20779898c01736eb39ecd7db7d66c2c24e4358b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165037
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit e830394c068c229bb840018f2f0e8810da6a1487)
(cherry picked from commit 5a78a44c486a2a49532d32a8ef53b2f2b4833ffe)
sw/qa/extras/uiwriter/uiwriter4.cxx
sw/source/core/crsr/findtxt.cxx