<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 - Infinite Loop if I use replaceAll for Hyperlinked words in Impress"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=128711">128711</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Infinite Loop if I use replaceAll for Hyperlinked words in Impress
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0.7.3 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</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>Impress
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rebahozkoc@hotmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
replaceAll replaces word with given word but if the searched word is in a text
with a hyperlink then program enters an infinite loop. It also happens when I
use Find & Replace button in the Impress.
Steps to Reproduce:
1. In a impress file write a text with an hyperlink to somewhere.
2. Open Find & Replace from the MENU or use this code:
pages = oDoc.getDrawPages()
for selected_page in pages:
replace = selected_page.createReplaceDescriptor()
replace.setSearchString("text")
replace.setReplaceString("replace_with")
selected_page.replaceAll(replace)
3. Search the text and try to replace with something.
Actual Results:
It adds same word to specified position again and again if I use replaceAll.
It deletes all hyperlinked text except changed word if I use Find & Replace
button.
Expected Results:
It should add the word once.
Reproducible: Always
User Profile Reset: Yes
OpenGL enabled: Yes
Additional Info:
Version: 6.0.7.3
Build ID: 1:6.0.7-0ubuntu0.18.04.10
CPU threads: 12; OS: Linux 5.0; UI render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); Calc: group</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>