Issue 87606 - Cancelled Dialog Event window modifies document
Summary: Cancelled Dialog Event window modifies document
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 2.4.0
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: 3.4.0
Assignee: carsten.driesner
QA Contact: issues@framework
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2008-03-30 13:59 UTC by bmarcelly
Modified: 2013-03-27 14:43 UTC (History)
3 users (show)

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


Attachments
OpenOffice text document with dialog and assigned event (10.26 KB, application/vnd.sun.xml.writer)
2008-03-30 14:01 UTC, bmarcelly
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2008-03-30 13:59:59 UTC
This problem appears with OOo 2.4.0 (not 2.3.1) with a OOo 1.1.x document containing 
a dialog where a control has a macro assigned to one of its events.

1 - Open the document
2 - Open the dialog module in the IDE
3 - Select a control bound to an event macro
4 - display Properties, Event tab, click on the button at right to open the Assign 
Action window.
5 - do nothing more than : click Cancel. Wait 2 seconds
6 - the Save icon is now enabled. If you close the document, you are requested to 
save it.

The problem does not appear on an ODF document.

Note:
The problem does not appear on OOo 2.3.1 but on that 2.3.1 version there is another 
problem: the macro assignment is not displayed for the bound event. Perhaps the new 
problem results from correcting the old one.
Comment 1 bmarcelly 2008-03-30 14:01:32 UTC
Created attachment 52370 [details]
OpenOffice text document with dialog and assigned event
Comment 2 bmarcelly 2008-03-30 14:03:54 UTC
setting regression keyword
Comment 3 Olaf Felka 2009-05-22 07:18:40 UTC
@ jsk: Please have a look.
@ bmarcelly : Is it still valid for OOo3.1?
Comment 4 bmarcelly 2009-05-22 16:11:47 UTC
The bug still appears on 3.1.0 (OOO310m11 build 9399)
Moreover it now also appears on an ODF document created with OOo 3.1.0

Tested on Windows XP Home SP3.
Comment 5 Mathias_Bauer 2011-02-09 12:03:50 UTC
Carsten, please have a look
Comment 6 carsten.driesner 2011-03-01 09:36:48 UTC
cd: Fixed. Dialog returns wrong return result on clicking OK (RET_CANCEL). Therefore the code wasn't able to distinguish between OK and CANCEL. The fixed code is now able to process the return result correctly.
Comment 7 carsten.driesner 2011-03-01 09:37:57 UTC
cd: Fixed. Dialog returns wrong return result on clicking OK (RET_CANCEL). Therefore the code wasn't able to distinguish between OK and CANCEL. The fixed code is now able to process the return result correctly.
Comment 8 mikhail.voytenko 2011-03-01 09:38:36 UTC
The fix is reviewed and looks good.
Comment 9 carsten.driesner 2011-03-01 09:39:29 UTC
cd: Set target correctly.
Comment 10 DanielAlvaro 2013-03-27 14:43:43 UTC
Reproduced with AOO 4.00 in Win xp, the problem was solved.

Best Regards.