Issue 120469

Summary: Calc crashes when duplicating a button on dialog editor by copying and pasting
Product: App Dev Reporter: snoff <cguth>
Component: scriptingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: hanya.runo, issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description snoff 2012-08-06 11:25:52 UTC
Hello,

I have a problem in dialog editor since Aoo 3.4.0 (on windows XP). I need to duplicate a text button. For this, i copy the button, and then, i paste it.

When the button is just created, it seems to work fine (the label of the button is &202.DialPVA6463phrasestypes.CommandButton3.Label, and the help text is &201.DialPVA6463phrasestypes.CommandButton3.HelpText).

I change the properties of the original button, remplacing the label by the text "text button" and the help text by "help text".

Then, i select the original button i've just changed, i copy it in the clipboard, and when i paste the button, it crashes OpenOffice.

My goal was to clone button to obtain more buttons with the same sizes (without copying manually all properties).

The behavior is the same with checkboxes (after modifiing the label and the help text), copying and pasting the checkbox crashes OpenOffice too.

The crash occurs when i change the label of component (checkbox or command button and maybe more ...). I've just created a checkbox, changed the label, copied in the clipboard and pasted it as new check box -> crash

The crash occurs when i change the help text only too.

It's just annoying but not critical.

Thanks for your work.

Greetings
Comment 1 hanya 2012-08-09 17:22:58 UTC
Even the dialog library is translated, initial label of new button should be 
normal text like "CommandButton1". Resource id should not be shown in the 
property browser.

I got the following message with crash at pasting the button, on Linux environment: 
terminate called after throwing an instance of 'com::sun::star::resource::MissingResourceException

Maybe this problem is there on All platform.