[upstream] Search and replace, with tracked changes on, changing only format of text, causes Writer to hang

Bug #1126858 reported by Christopher Barrington-Leigh
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LibreOffice
Confirmed
Medium
libreoffice (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Create new text document with contents "Hello, World".
Turn on change tracking (under Edit).
Select Find and Replace (under Edit).
Put "Hello" (no quotes) in both the find and the replace boxes.
Click on "More".
Put cursor in Replace box.
Click on Format.
Set it to, say Italic (leave other options empty). Accept.

And now, for the fatal part: Click "Replace all".
If you just replace one, you'll see why the latter fails. The replacement value gets inserted beofre the original, so then it continues on and sees the original again... ad infinitum.

What should happen: If it just put its position after the original text when searching and replacing, it wouldn't have this problem.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: libreoffice (not installed)
ProcVersionSignature: Ubuntu 3.5.0-23.35-generic 3.5.7.2
Uname: Linux 3.5.0-23-generic x86_64
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Fri Feb 15 21:37:14 2013
InstallationDate: Installed on 2012-12-13 (65 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Magnes (magnesus2) wrote :

If you turn on recording and showing changes in document find and replace will replace even things already deleted. Example:

1. Create new document.
2. Write "This is a document".
3. Turn on showing and recording changes.
4. Delete the word "document" so you have "This is a".
5. Replace document with "file".
6. The document will contain: "This is a file." instead of "This is a".

Revision history for this message
In , Magnes (magnesus2) wrote :

PS. In point 5 I mean "Use search and replace to change word 'document' to 'file'". Sorry for being vague.

Revision history for this message
In , Gleppert-o (gleppert-o) wrote :

I tested the bug as described. I can confirm the bug on my system.

Furthermore, the bug is even more serious than described:

* First problem as described by Tomasz: The replace deleted word is active/undeleted after search&replace. This actually destroys the written text.

* Second problem: After hitting "Replace all" a couple of times, it will keep replacing the deleted text with the new text. The dialog never displays "Word not found" and hence does not stop.

Due to the reason that data can be actually made unusable/unreadible, I change the importance to high/major. I hope this is okay.

System: Ubuntu 10.4./Gnome, LibreOffice 3.3.2 PPA, Intel 32Bit

Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html

Revision history for this message
In , Chuck598 (chuck598) wrote :

No longer does find & replace work for me.

I have deleted LibeOffice & reinstalled & no change.

Maybe there is a report that I didn't see about this or maybe only me?

I am only a user so not to good & this as this is the first time I have tried to report a problem.

Revision history for this message
In , Gleppert-o (gleppert-o) wrote :

This severe regression is still there in LibreOffice 3.5.
I just 'destroyed' a document myself where track changes was activated (and extensively used) and I wanted to search&replace something.

Please increase the severity of this bug!

Revision history for this message
In , Stfhell (stfhell) wrote :

Still a problem in LO 3.6.2.2. In summary: When "Show tracked changes" is active, "Find" will find text that has been deleted with "track changes" activated. "Find & replace" will replace already deleted text. When you do "Find & replace" with activated "track changes", it will replace the same (already deleted) text again and again. "Replace all" works insofar as it replaces each occurance only once.

Actually it can be useful if "Find" also searches tracked deletions - after all you use "track changes" to be able to keep deleted text in the document. But I think it's usually not what you want. So you would have to disable "show tracked changes" just to do a "Find". I cannot imagine a situation where you would like already deleted text to be replaced by newly inserted text.

It's definitely a bug that LO does not at least move the cursor behind the replaced text when you choose "Replace" in the "Find & replace" dialogue with "track changes" activated. That leads to the same text being replaced again and again.

Revision history for this message
In , Michael-stahl (michael-stahl) wrote :

please somebody tell me which OOo/LO version did not have this bug.

i can reproduce it going back to OOo 3.0.1, so doesn't look like a regression.

Revision history for this message
In , Stfhell (stfhell) wrote :

I can't remember that this has ever worked differently. The corresponding OOo bug was filed in 2007 for OOo 2.3:
https://issues.apache.org/ooo/show_bug.cgi?id=82591

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :
Revision history for this message
sam wytoski (sam-wytoski) wrote :

i have followed your steps through trying to recreate this bug.
using:
libreoffice-writer 1:3.6.2~rc2-0ubuntu4
Ubuntu 12.10 (quantal)
gnome 3.6.0 (Ubuntu 2012-10-04)
kernel 3.5.0-24-generic (#37-Ubuntu SMP Thu Feb 7 01:50:30 UTC 2013)
amd64

i was unable to recreate this bug with my system

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

I just tried again and find the same results I advertised.
Why does my first entry not specify the version of LibreOffice?
The "Help-About" box in LibreOffice says: Version 3.6.2.2 (Build ID: 360m1(Build:2))

So.. Since my report said "not installed" (ie I was just using the Libreoffice that came with the distro, rather than as its own package??)

So I installed LibreOffice, redid my test (same result)
And the Help-About box says the same thing, too.

Changed in libreoffice (Ubuntu):
status: Incomplete → Opinion
status: Opinion → Incomplete
status: Incomplete → New
Revision history for this message
penalvch (penalvch) wrote :

Christopher Barrington-Leigh, thank you for reporting this and helping make Ubuntu better. Could you please demonstrate how to reproduce this bug with a screencast via https://help.ubuntu.com/community/Screencast ?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

Righto. Here it is, just as described.

penalvch (penalvch)
Changed in libreoffice (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

Hi Christopher Penalver.

The application locks up and I have to destroy the process. Maybe could you explain why you are saying there's no infinite loop? I gave both a theory for why it happens and evidence of it happening, so more explanation from you to explain my mistake would be kind.

Revision history for this message
penalvch (penalvch) wrote :

Christopher Barrington-Leigh, I beg your pardon as my previously rationale was incorrect. This issue is reproducible in Xubuntu as demonstrated in your screencast. Hence, the issue you are reporting is an upstream one. It would be nice if somebody having it could send the bug to the developers of the software by following the instructions verbatim at http://wiki.documentfoundation.org/BugReport . If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about the status. Thanks in advance.

Helpful bug reporting tips:
https://help.ubuntu.com/community/ReportingBugs

 lsb_release -rd
Description: Ubuntu 13.04
Release: 13.04

apt-cache policy libreoffice-writer
libreoffice-writer:
  Installed: 1:4.0.2-0ubuntu1
  Candidate: 1:4.0.2-0ubuntu1
  Version table:
 *** 1:4.0.2-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main i386 Packages
        100 /var/lib/dpkg/status

Version: 4.2.0.0.alpha0+
Build ID: 979def88090633bfee0e0445b19999a1dac71ed
Microsoft Windows Vista Business x86 6.0.6002 Service Pack 2 Build 6002

Status -> Triaged
Importance -> Medium

Changed in libreoffice (Ubuntu):
status: Invalid → Confirmed
summary: - text: Search and replace, with tracked changes on, when changing only
- format of text, causes fatal infinite loop
+ Search and replace, with tracked changes on, changing only format of
+ text, causes Writer to hang
tags: added: raring
Revision history for this message
In , Cpblpublic+bugzilla (cpblpublic+bugzilla) wrote :

Create new text document with contents "Hello, World".
Turn on change tracking (under Edit).
Select Find and Replace (under Edit).
Put "Hello" (no quotes) in both the find and the replace boxes.
Click on "More".
Put cursor in Replace box.
Click on Format.
Set it to, say Italic (leave other options empty). Accept.

And now, for the fatal part: Click "Replace all".
If you just replace one, you'll see why the latter fails. The replacement value gets inserted beofre the original, so then it continues on and sees the original again... ad infinitum.

What should happen: If it just put its position after the original text when searching and replacing, it wouldn't have this problem.

Revision history for this message
In , Cpblpublic+bugzilla (cpblpublic+bugzilla) wrote :

Initial report at https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1126858
where it has been confirmed

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote : Re: Search and replace, with tracked changes on, changing only format of text, causes Writer to hang
Revision history for this message
In , penalvch (penalvch) wrote :

Reproducible in:
Version: 4.2.0.0.alpha0+
Build ID: 979def88090633bfee0e0445b19999a1dac71ed
Microsoft Windows Vista Business x86 6.0.6002 Service Pack 2 Build 6002

Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

Bulk change: Bibisected bugs can be assumed to be regressions.

Revision history for this message
In , Michael-stahl (michael-stahl) wrote :

removing erroneously added "regression", see comment #7

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

According to comment 7 this isn't a regression, thus remove bibisected35
bibisected35older from whiteboard

Changed in libreoffice (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
In , Gquigs+bugs (gquigs+bugs) wrote :

Still Reproducible in: 4.5.0.0.alpha0+
a8835936e9d3e19443c63b7b365174254741cf76

Revision history for this message
In , Qa-admin-q (qa-admin-q) wrote :

** Please read this message in its entirety before responding **

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.0.5 or later)
   https://www.libreoffice.org/download/

   If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior

 If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:

1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)

http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3
. Leave a comment with your results.

4a. If the bug was present with 3.3 - set version to "inherited from OOo";
4b. If the bug was not present in 3.3 - add "regression" to keyword

Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa

Thank you for your help!

-- The LibreOffice QA Team This NEW Message was generated on: 2015-09-03

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

This issue is still present in

Version: 5.0.1.2
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: es-ES (es_ES)

on Windows 7 (64-bit)

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote : Re: Search and replace, with tracked changes on, changing only format of text, causes Writer to hang

Still reproducible in

Version: 5.0.5.2
Build ID: 1:5.0.5~rc2-0ubuntu2
Locale: en-CA (en_CA.UTF-8)

Revision history for this message
In , Qa-admin-q (qa-admin-q) wrote :

** Please read this message in its entirety before responding **

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present on a currently supported version of LibreOffice
(5.1.5 or 5.2.1 https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the version of LibreOffice and
your operating system, and any changes you see in the bug behavior

If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave
a short comment that includes your version of LibreOffice and Operating System

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)

http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3
. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to "inherited from OOo";
4b. If the bug was not present in 3.3 - add "regression" to keyword

Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug-20160920

Revision history for this message
In , Gerry-treppel (gerry-treppel) wrote :

Bug still present in Version: 5.1.4.2
Build-ID: 1:5.1.4-0ubuntu1

Revision history for this message
In , timur (ba.timur) wrote :

*** Bug 65056 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Qa-admin-q (qa-admin-q) wrote :

** Please read this message in its entirety before responding **

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.

If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3
. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug

Revision history for this message
In , Gerry-treppel (gerry-treppel) wrote :

This bug still exists in LO 6.0 and is still very annoying.

Example:
If you work with long documents in a team, track changes is often enabled. If you then, for example, replace the British "ise" / "isation" with "ize" / "ization", then you end up with lots of rubbish in the document. LibreOffice Writer does also replace the string in all deleted words and displays the replaced string as not deleted (!). In other words, everywhere in the document are nonsense "ize" / "ization" strings, which you have to manually clean. -> extremely annoying and time-consuming bug!

Version: 6.0.3.2
Build-ID: 1:6.0.3~rc2-0ubuntu0.16.04.1~lo2
CPU-Threads: 4; BS: Linux 4.4; UI-Render: Standard; VCL: gtk2;
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group

Revision history for this message
In , Gerry-treppel (gerry-treppel) wrote :

IMHO there are two possible ways to fix this bug:

Either:

(1) Writer should not find search strings in deleted text at all (meaning text deleted in Track Changes mode)

Or:

(2) Writer still finds search strings in all text (including deleted text in Track Changes mode) and also replaces them, but replaced text should be flagged as deleted.

Solution 1 is preferable to solution 2. However, if solution 2 is easier to implement, IMHO it would be also okay.

Revision history for this message
In , Qa-admin-q (qa-admin-q) wrote :

** Please read this message in its entirety before responding **

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.

If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3
. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug

Revision history for this message
In , Gerry-treppel (gerry-treppel) wrote :

The bug is still present in v 6.1.5.2. I don't have the most recent LO release at hand, so please can somebody test this against the newest version?

Generally, I hope that this bug receives some attention. In every larger project (with track changes), I encountered issues related to this bug that I had to clean manually. Is a fix so complicated?

Version: 6.1.5.2
Build ID: 1:6.1.5-0ubuntu0.18.10.1
CPU threads: 4; OS: Linux 4.18; UI render: default; VCL: gtk3;
Locale: en-GB (de_DE.UTF-8); Calc: group threaded

Changed in df-libreoffice:
importance: Medium → Unknown
status: Confirmed → Unknown
Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
status: Fix Released → Triaged
summary: - Search and replace, with tracked changes on, changing only format of
- text, causes Writer to hang
+ [upstream] Search and replace, with tracked changes on, changing only
+ format of text, causes Writer to hang
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , timur (ba.timur) wrote :

*** Bug 128982 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Libreoffice-1 (libreoffice-1) wrote :

Created attachment 159953
Screenshot of Word and Writer side by side after following the steps

Still happens in:

Version: 7.0.0.0.alpha0+ (x64)
Build ID: 151d95376a13907553032efc271fb0a7a27c9782
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win;
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL

Also: this behavior is the same as in Word.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

I cannot re(In reply to NISZ LibreOffice Team from comment #23)
> Created attachment 159953 [details]
> Screenshot of Word and Writer side by side after following the steps
>
> Still happens in:
>
> Version: 7.0.0.0.alpha0+ (x64)
> Build ID: 151d95376a13907553032efc271fb0a7a27c9782
> CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL:
> win;
> Locale: hu-HU (hu_HU); UI-Language: en-US
> Calc: CL
>
> Also: this behavior is the same as in Word.

I cannot reproduce this issue in Microsoft Word. I have an Office 365 subscription and I only use .docx files.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

(In reply to NISZ LibreOffice Team from comment #23)
> Created attachment 159953 [details]
> Screenshot of Word and Writer side by side after following the steps
>
> Still happens in:
>
> Version: 7.0.0.0.alpha0+ (x64)
> Build ID: 151d95376a13907553032efc271fb0a7a27c9782
> CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL:
> win;
> Locale: hu-HU (hu_HU); UI-Language: en-US
> Calc: CL
>
> Also: this behavior is the same as in Word.

Try replacing document with file a few more times.

Revision history for this message
In , Heiko-tietze-g (heiko-tietze-g) wrote :

Clearly a bug to me, deleted content is still gone even when TC is on (comment 19, option 1). Don't see need for input from UX.

Revision history for this message
In , Lajo-9 (lajo-9) wrote :

Using LO 7.1.6.2, this is also a problem for me. If show track-changes is on, search-and-replace will find text in deleted text, replace it with NON-DELETED replacement text, and can then start over, replacing it once again.

As a result, search-and-replace is effectively unusable when track-changes are shown (something that I as a user can only learn the hard way). IMHO, the importance is higher than the current setting of "normal".

Two possible solutions were mentioned in comment 19:

(1) Writer should not find search strings in deleted text at all (meaning text deleted in Track Changes mode)

Or:

(2) Writer still finds search strings in all text (including deleted text in Track Changes mode) and also replaces them, but replaced text should be flagged as deleted.

A possible third could be:

(3) In search-and-replace mode, deleted text is not found (i.e., option 1 in this case), while in search-only mode, deleted text is found if track-changes are shown (i.e., option 2 in this case).

The advantage of option 3 is that it is still possible to search in all the text that is seen on the screen. But I have no problems going for the most simple solution: Option 1.

Version: 7.1.6.2 (x64) / LibreOffice Community
Build ID: 0e133318fcee89abacd6a7d077e292f1145735c3
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: da-DK
Calc: threaded

Revision history for this message
In , Stéphane Guillou (stephane-guillou) wrote :

reproduced in:

Version: 7.3.0.1 / LibreOffice Community
Build ID: 840fe2f57ae5ad80d62bfa6e25550cb10ddabd1d
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Revision history for this message
In , Lajo-9 (lajo-9) wrote :

(In reply to NISZ LibreOffice Team from comment #23)
> Created attachment 159953 [details]
> Screenshot of Word and Writer side by side after following the steps
>
> Still happens in:
>
> Version: 7.0.0.0.alpha0+ (x64)
> [...]
>
> Also: this behavior is the same as in Word.

As noted by NISZ LibreOffice Team, the behaviour is very much similar i Word: Also in Word, Search & Replace while showing track-changes, does search within deleted text and replaces with non-deleted text. Just tested with MS Office 365.

I can see why it can sometimes be relevant to search also in deleted text, e.g. to find where you (or a colleague) deleted something. And if you do not want this, just turn off showing track-changes. But I fail to see why anybody would want already-deleted text to be part of replacing. (Even before the problems of doing more than one search & replace, leading to several instances of the new text.) Well, failing the see the use could be just my lack of imagination. So:

Can anybody come up with a case where searching within deleted text and replacing with new text would be the intended behaviour?

Put another way: Can anybody see a reason why this would NOT be a bug (happening to be shared by LO and MS Office)?

PS: Word notes the user that "We are through searching the document" after one pass, so the user will at least know that if s/he continues replacing, it will be in text that had already been considered. This will stop most users from repeated replacement, but does not change the question how replacing at all in deleted text could be the intended behaviour.

Revision history for this message
In , Hussam Al-Tayeb (hussam) wrote :

Please don't spread incorrect information.

It does not resemble the Microsoft Word behavior. I just tested on both
Sharepoint and desktop MS Office 365.
Please test again. You probably did not understand the bug.
Libreoffice replaces the deleted text with each recursion while
Microsoft Office does not replace deleted text.

Revision history for this message
In , Lajo-9 (lajo-9) wrote :

(In reply to Hussam Al-Tayeb from comment #30)
> Please don't spread incorrect information.
>
> It does not resemble the Microsoft Word behavior. I just tested on both
> Sharepoint and desktop MS Office 365.
> Please test again. You probably did not understand the bug.
> Libreoffice replaces the deleted text with each recursion while
> Microsoft Office does not replace deleted text.

Just tested once again with Word from MS Office 365, confirming that a variant of this bug is indeed present in MS Office: Opening some text, deleting with track-changes on and shown, and then using search&replace: the searched text is found also in the deleted text and replaced with non-deleted text. I have reported it to MS Office as a bug.

Well, to get back to the point of a LibreOffice forum: The bug is still present in LO 7.3.2.2

Revision history for this message
In , Ilmari-lauhakangas (ilmari-lauhakangas) wrote :

*** Bug 147570 has been marked as a duplicate of this bug. ***

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.