follow-up of bug 44837
Steps to Reproduce:
find and replace: b > a ; current selection only
after "replace all" only the string "sdasd" is select
string "asdasd" should be selected.
User Profile Reset: No
Xisco confirmed, setting as new
Yep, confirmed in
Build ID: 43ddddb703bcdb9430752af63ae46527f737f874
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Still in 188.8.131.52.alpha0+ (8aee8c0cf1bdda1866594e75b0f9bd4b9a69c724).
Started with 184.108.40.206, in 220.127.116.11 the text is deselected after replace.
The problem appears in DocumentContentOperationsManager::ReplaceRangeImpl in https://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentContentOperationsManager.cxx?r=682e0488#4279 where the positions get corrected in https://opengrok.libreoffice.org/xref/core/sw/source/core/doc/doccorr.cxx?r=0f097b4d#58, but the poblem exceeds my knowledge how to fix this behaviour.