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

            Bug ID: 100535
           Summary: RegEx Search-Replace with Text Box causes infinite
                    loop
           Product: LibreOffice
           Version: 5.1.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: fz1...@gmail.com

Steps to reproduce:

1. Create New Writer document.
2. Press Enter to create a second line.
3. Insert a Text box (type some text, ie. "Test").
4. Click out of the Text Box.
5. Press Ctrl-H to open Search dialog.
6. Check "regular expressions" under "Other options".
7. Enter " *$" (space-asterisk-dollar sign) in the Search field. Leave Replace
blank. (this RegEx is to remove trailing spaces).
8. Press "Replace All".

This causes an infinite loop (Windows says "LibreOffice has stopped
responding").

This bug has been present for quite a while, I just didn't report it until now.
I found it because I often work with electronic books and use a Text Box for
the Cover title, as I can control the shadowing depth.

If the Text Box is not in the document, the search/replace works fine.

My workaround for now is to select all the text I want to search, then check
"current selection only" in the Search dialog.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to