Apache OpenOffice (AOO) Bugzilla – Issue 24094
Renaming a Basic library destroys module and dialog
Last modified: 2004-12-08 12:56:01 UTC
1 Create a document containing a Basic library (not Standard) containing a Basic module and a Dialog module. Save and close the document. 2 Re-open the document. 3 Use the organizer without loading the library, i.e. in the configuration tree this library is not colored and its modules are not displayed. 4 In the Macro Organizer panel, use Libraries tab, select Application/Document = your document. In the library field select your library, then click on it. After some trials you see that the line can be modified. Change the library name. Click elsewhere to confirm change. Select this library and click Edit button. You are now in an empty Basic module, and there is no dialog module. All your Basic have vanished without warning. 5 Close the document without saving. 6 Reload the document. This time load the library by double-clicking it in the Macro panel. Do again the manipulation of step 4 : the renaming works correctly.
SBA: Reassigned to Joerg.
Confirmed. I get a <No Module> displayed in the BASIC IDE. Set target OOo 2.0 Assign to tbe. jsk->tbe: I really takes some fiddling around but after a few tries i managed to reproduce this.
Created attachment 14888 [details] before renaming the library
Created attachment 14889 [details] after renaming the library
accepted
TBE->AB: The Basic IDE calls XLibraryContainer2::renameLibrary(), but this doesn't work for unloaded libraries.
Accepted
Fixed The situation was even much worse. After renaming a document library and saving + reloading the document the library is gone anyway unless the user has modified the library (e.g. by editing a Basic module) after renaming it. This is fixed now, too.
Reopened for reassign
AB->SW: Please verify
-> Fixed
verified in tbe13
close, a follow-up bug will be submitted for not opening the library when clicking "edit"