sw: find & replace: fix soft hyphen cleaning
commitf651419fcfa2e4a5059ba41587f1b437fe069109
authorMiklos Vajna <vmiklos@collabora.com>
Wed, 22 Jul 2020 15:36:17 +0000 (22 17:36 +0200)
committerMiklos Vajna <vmiklos@collabora.com>
Thu, 23 Jul 2020 07:52:45 +0000 (23 09:52 +0200)
treea5ebe819157244f2aa09af3f31c0c491b7b556d2
parent48a216cd16b306f4d2d7edc374ceb4670d177db8
sw: find & replace: fix soft hyphen cleaning

If there is a formatted soft hyphen after the search string, then
replace skipped the replacement, even if there was a match.

Do the same for comments & footnotes, though the primary reported
problem was just soft hyphens.

(The same happened when manually doing find & replace using the Ctrl-H
dialog.)

(cherry picked from commit d8270636a57e7dc68ede51308c380e2098f765d7)

Change-Id: I8437e84dea99ceef98d515beef5893cf954e674f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99268
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
sw/CppunitTest_sw_core_crsr.mk [new file with mode: 0644]
sw/Module_sw.mk
sw/qa/core/crsr/crsr.cxx [new file with mode: 0644]
sw/source/core/crsr/findtxt.cxx