<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - [EDITING] "Replace All" does not undo properly if the replacement string is empty"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136577">136577</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[EDITING] "Replace All" does not undo properly if the replacement string is empty
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.1.0.0.alpha0+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>matt@mattmccutchen.net
</td>
</tr></table>
<p>
<div>
<pre>Description:
After a "Replace All" command in which the replacement string is empty, "Undo"
does not correctly restore the previous state. In some cases (as in the steps
to reproduce here), "Undo" does nothing at all. In others, I've seen it change
some formatting but still not restore the previous state.
Steps to Reproduce:
1. Create a new Writer document.
2. Type in the single character "x".
3. Go to "Edit" -> "Find and Replace".
4. In "Find", type "x". Leave "Replace" empty.
5. Click "Replace All" and then close the dialog box.
6. Click "Undo" on the toolbar.
Actual Results:
"Undo" does nothing.
Expected Results:
"Undo" brings back the "x" that was removed by "Replace All".
Reproducible: Always
User Profile Reset: Yes
Additional Info:
Bug reproduced in:
- libreoffice-6.4.6.2-1.fc32.x86_64 (Fedora 32)
- libreoffice7.0-7.0.1.2-2.x86_64 downloaded from the home page today
- Nightly build
master~2020-09-07_09.02.58_LibreOfficeDev_7.1.0.0.alpha0_Linux_x86-64_rpm.tar.gz
Bug does not occur in:
- Apache_OpenOffice_4.1.7_Linux_x86-64_install-rpm_en-US.tar.gz</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>