cool#6580 sw: fix infinite loop when changing document language
commita7a1f426374f865ef31f5c5162eac4c1c11efc6c
authorMichael Stahl <michael.stahl@allotropia.de>
Fri, 9 Jun 2023 11:59:58 +0000 (9 13:59 +0200)
committerMichael Stahl <michael.stahl@allotropia.de>
Wed, 14 Jun 2023 16:00:18 +0000 (14 18:00 +0200)
tree087b23ff911c56775dd9c7d04dc458fcf759cff2
parenta2b206ec80119000c581aa954632a1a9839408ba
cool#6580 sw: fix infinite loop when changing document language

If there's a footnote in the document, changing the document langauge
goes into an infinite loop in FindParentText(), because the selection
created by ExtendedSelectAll(true) is actually invalid, apparently
the intention is that only very limited functions may be called while it
is active.

Don't handle this invalid "very" extended selection like one created by
ExtendedSelectAll(false).

(regression from commit d81379db730a163c5ff75d4f3a3cddbd7b5eddda)

Change-Id: Icf1032715cf2e0a05bf485039c483440c08bb6bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152797
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit ca9341cf60f3f9350662d30b61f6eadefca24667)
sw/qa/extras/uiwriter/uiwriter2.cxx
sw/source/core/crsr/crsrsh.cxx