https://bugs.freedesktop.org/show_bug.cgi?id=64690

          Priority: medium
            Bug ID: 64690
          Assignee: [email protected]
           Summary: EDITING: Process hang on find/replace in Basic code
                    involving "\&"
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.0.3.3 release
         Component: Spreadsheet
           Product: LibreOffice

Certain "Find & Replace" operations in Basic-language macro code cause the
process to hang (must be killed externally).

It seems to happen when Regular Expressions are enabled and the replacement
text is "something\&".   Note that & is supposed to be a magic replacement
token when using Regular Expressions, but not, presumably, with a backslash.

Regardless, the process should never hang permanently.

STEPS TO REPRODUCE:
1. Open the attached demo spreadsheet (ReplaceBug.ods)
   It is NOT necessary to enable macro execution.

2. Tools->Macros->Organize Macros-LibreOffice Basic
   Navigate to the "BugDemo" module in the document
   (ReplaceBug.ods was the name used to attach it to this bug)
   Click "Edit" to view the code.

3. Follow the instructions shown in the comments, which are as follows:

'abc
'def

'
'  1. Select the two comment lines above ('abc and 'def)
'  2. Edit->Find and Replace (or Control-H)
'  3. Click "More Options" and 
'       check "Selection Only"
'       check "Regular Expressions"
'  4. In the "Find" box, enter "."
'  5. In the "Replace" box, enter "ABC\&"
'  6. Click ReplaceAll
'  (process hangs)

NOTE: The hang does not occur when editing cell content (rather than Basic
source code). or if the replacement text is "\&" by itself (rather than
"ABC\&").

Operating System: Ubuntu
Version: 4.0.3.3 release

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to