Issue 24094 - Renaming a Basic library destroys module and dialog
Summary: Renaming a Basic library destroys module and dialog
Status: CLOSED FIXED
Alias: None
Product: ui
Classification: Code
Component: ui (show other issues)
Version: OOo 1.1 RC
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: stephan.wunderlich
QA Contact: issues@ui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-05 10:10 UTC by bmarcelly
Modified: 2004-12-08 12:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
before renaming the library (9.63 KB, application/vnd.sun.xml.writer)
2004-04-30 09:27 UTC, joerg.skottke
no flags Details
after renaming the library (7.75 KB, application/vnd.sun.xml.writer)
2004-04-30 09:28 UTC, joerg.skottke
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2004-01-05 10:10:28 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.
Comment 1 stefan.baltzer 2004-01-07 16:00:06 UTC
SBA: Reassigned to Joerg.
Comment 2 joerg.skottke 2004-04-30 09:23:53 UTC
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.
Comment 3 joerg.skottke 2004-04-30 09:27:30 UTC
Created attachment 14888 [details]
before renaming the library
Comment 4 joerg.skottke 2004-04-30 09:28:08 UTC
Created attachment 14889 [details]
after renaming the library
Comment 5 thomas.benisch 2004-04-30 11:52:29 UTC
accepted
Comment 6 thomas.benisch 2004-07-23 16:17:12 UTC
TBE->AB: The Basic IDE calls XLibraryContainer2::renameLibrary(), but this doesn't
work for unloaded libraries.
Comment 7 ab 2004-07-27 13:27:39 UTC
Accepted
Comment 8 ab 2004-10-08 12:35:45 UTC
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.
Comment 9 ab 2004-11-08 14:34:32 UTC
Reopened for reassign
Comment 10 ab 2004-11-08 14:36:22 UTC
AB->SW: Please verify
Comment 11 ab 2004-11-08 14:42:55 UTC
-> Fixed
Comment 12 chne 2004-11-09 11:36:31 UTC
verified in tbe13
Comment 13 joerg.skottke 2004-12-08 12:56:01 UTC
close, a follow-up bug will be submitted for not opening the library when
clicking "edit"