Bug 146274 - Undo after search-and-replace is br0ken
Summary: Undo after search-and-replace is br0ken
Status: RESOLVED DUPLICATE of bug 140007
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.8.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2021-12-16 19:54 UTC by Mike Kaganski
Modified: 2022-02-02 21:45 UTC (History)
3 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 Mike Kaganski 2021-12-16 19:54:13 UTC
In a new Writer document, create this text:

1
2
3
4
5
6
7

- i.e., 7 paragraphs, one character each.
Select all, Ctrl+H, In selection, Regular expressions, Diacritic-sensitive, Find $, replace , (single comma character), Replace All.

The text changes to expected

1,2,3,4,5,6,7

Undo

The text changes to unexpected

1234567
(and 6 empty paragraphs below)

Redo

The text changes to

1,,,,,,

Undo two times, then redo

!!br0ken!! appears.

Seen with Version: 7.2.4.1 (x64) / LibreOffice Community
Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL

and with Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 57ad86fec9e5b4981332392bdb5c5a1f5e468bfe
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

(the latter DBGUTIL build shows failing assertion on some step).
Comment 1 LeroyG 2021-12-16 20:52:42 UTC
Seen with: Version: 7.1.8.1 / LibreOffice Community
Build ID: e1f30c802c3269a1d052614453f260e49458c82c
CPU threads: 1; OS: Linux 4.12; UI render: default; VCL: x11
Locale: es-MX (es_AR.UTF-8); UI: en-US
Calc: threaded
Comment 2 Mike Kaganski 2021-12-16 21:22:08 UTC
Also seen with Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

But not with Version: 6.4.0.3 (x64)
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded

Regression after https://git.libreoffice.org/core/+/e1629c210ad78310e3d48c0756723134a27b89df

  tdf#131912 sw: fix spell check correct deleting flys
Comment 3 Buovjaga 2022-01-17 17:50:46 UTC
*** Bug 146796 has been marked as a duplicate of this bug. ***
Comment 4 Gabor Kelemen (allotropia) 2022-02-02 21:45:57 UTC
This looks like a duplicate of bug 140007 which has similar STR and bibisected to the same commit.

*** This bug has been marked as a duplicate of bug 140007 ***