[Libreoffice-bugs] [Bug 128711] New: Infinite Loop if I use replaceAll for Hyperlinked words in Impress

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 11 13:18:53 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=128711

            Bug ID: 128711
           Summary: Infinite Loop if I use replaceAll for Hyperlinked
                    words in Impress
           Product: LibreOffice
           Version: 6.0.7.3 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rebahozkoc at hotmail.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191111/f18c3182/attachment-0001.html>


More information about the Libreoffice-bugs mailing list