Bug 66573 - When search and replace is done, when undo is called the text does NOT go back to original.
Summary: When search and replace is done, when undo is called the text does NOT go bac...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.0.4.2 release
Hardware: x86-64 (AMD64) All
: high critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-04 04:54 UTC by Rogerio Luz Coelho
Modified: 2015-02-02 11:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Long Big file ... what we want to do is search / replace all and then try to recover with a undo. (128.62 KB, application/vnd.oasis.opendocument.text)
2013-07-04 05:50 UTC, Rogerio Luz Coelho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rogerio Luz Coelho 2013-07-04 04:54:54 UTC
Search for a regex pattern, search all, replace all, CTRL+Z (Comm+Z in MAC) does not give me the original text (it actually duplicates the text found in the search) and there is no way to return to original text with undos. 

Since this damages files beyond repare I marked it as major. 

I recall that 3.6 series did not have this issue. Will try testing this further.
Comment 1 Rogerio Luz Coelho 2013-07-04 05:50:45 UTC
Created attachment 82005 [details]
Long Big file  ... what we want to do is search / replace all and then try to recover with a undo.

Try these regex: 

Find all 
^([:digit:]){1,} 

Replace all
& \t; 

Now try to undo to the original file.
Comment 2 Dennis Grunert 2013-07-14 23:45:57 UTC
Your test case worked for me as expected with 3.6.6. Unfortunately I cannot test right now with the 4.0 branch.
Comment 3 Dennis Grunert 2013-12-14 13:34:09 UTC
The regex and undo works with your test file works for me with LibO 4.1.3.2. So this only seems to be an issue with LibO 4.0. Can you test it with the lastest bugfix release 4.0.6, so that we can close the bug, when it is fixed there?
Comment 4 Rogerio Luz Coelho 2013-12-16 00:26:07 UTC
Yep !!! 

Works for me too in 4.1.3.2

Will have to wait a while to get a chance to install a 4.0.6 (Downgrading on my old Mac is a pain ...) 

But I can consider it resolved if it works as expected on the new 4.1 branch. 

Thanks 

Rogerio.
Comment 5 Robinson Tryon (qubit) 2015-02-02 11:29:39 UTC
Component appears to be set incorrectly:
Updating from deletionrequest -> LibreOffice