Bug 125663 - After "replace all" only the part of the string is selected
Summary: After "replace all" only the part of the string is selected
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
Depends on:
Blocks: Find-Search
  Show dependency treegraph
 
Reported: 2019-06-03 16:59 UTC by raal
Modified: 2024-05-18 06:51 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description raal 2019-06-03 16:59:03 UTC
Description:
follow-up of bug 44837 

Steps to Reproduce:
write  bsdbsd
select all
find and replace: b > a ; current selection only

Actual Results:
after "replace all" only the string "sdasd" is select

Expected Results:
string "asdasd" should be selected.


Reproducible: Always


User Profile Reset: No



Additional Info:
printscreen http://bugs.documentfoundation.org/attachment.cgi?id=151770
Comment 1 raal 2019-06-03 17:00:02 UTC
Xisco confirmed, setting as new
Comment 2 Xisco Faulí 2019-06-10 13:57:39 UTC
Yep, confirmed in

Version: 6.4.0.0.alpha0+
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
Calc: threaded
Comment 3 Aron Budea 2020-06-07 01:36:38 UTC
Still in 7.1.0.0.alpha0+ (8aee8c0cf1bdda1866594e75b0f9bd4b9a69c724).
Started with 5.1.0.3, in 5.0.0.5 the text is deselected after replace.
Comment 4 Andreas Heinisch 2020-07-03 12:47:52 UTC
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.
Comment 5 QA Administrators 2022-07-04 03:27:38 UTC Comment hidden (obsolete)
Comment 6 raal 2024-05-18 06:51:59 UTC
Still reproducible in Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6d5d9eaa61505cebaf3bde4bfc157d8e19fec8de
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo