[Libreoffice-bugs] [Bug 40152] New: Replace with empty string doesn't work in the BASIC IDE.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 17 01:14:50 CEST 2011


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

           Summary: Replace with empty string doesn't work in the BASIC
                    IDE.
           Product: LibreOffice
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: medium
         Component: BASIC
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: guraknugen at gmail.com


Replace with empty string doesn't work in the BASIC IDE.


This issue was discussed here:
http://www.mail-archive.com/users@global.libreoffice.org/msg09544.html

When I search for something and leave the Replace field empty
(meaning that I will replace something with nothing), no replace will take
place. The only way I could find to do it, was to copy the text
to gEdit and quickly do the replace there and then move it back to the
Basic IDE again.

I have LibreOffice 3.3.3 (Swedish) and Ubuntu 10.10.

Note that this is Search/Replace in the BASIC IDE, which also have some other
bugs, but they are reported, I think.

Some people replied and confirmed that the bug exists on:
LibreOffice 3.3.3 (US English), Ubuntu 10.10
LibreOffice 3.4.2 (Final)
OpenOffice.org 3.2.1 (Ubuntu go-oo build)
OpenOffice.org 3.3.0 (standard build)
OpenOffice.org-Dev 3.4.0
OpenOffice.org, Fedora 14 (I guess the version that comes with Fedora 14 by
default, whichever version that is…)

Steps to verify the bug:
01. Start LibreOffice (for example Calc).
02. Click Tools → Macros → Organize macros → LibreOffice Basic…
03. Click Untitled 1.
04. Click the New button.
05. Leave the field as is (”Module1”), click OK.
06. Copy the following extremely meaningful code:

REM  *****  BASIC  *****

Option Explicit

Sub Main
    Dim MyInterestingVariable As Double

    MyInterestingVariable=Pi
    MyInterestingVariable=MyInterestingVariable*MyInterestingVariable
    Print MyInterestingVariable
End Sub

07. In the LibreOffice Basic IDE, press Ctrl+a, then Ctrl+v.
08. Place the cursor in the upper left corner.
09. Press Ctrl+f.
10. In the ”Search for” field, type ”Interesting”, don't type the quotes.
11. Make sure the ”Replace with” field is empty. Really empty, no spaces or
anything.
12. Click ”Find”. The first occurrence of the string is found.
13. Click ”Replace”. Nothing happens, and this is the bug!
14. Click ”Replace all”, all occurrences are replaced, so it seems like the bug
is limited to the Replace-button.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Libreoffice-bugs mailing list