Apache OpenOffice (AOO) Bugzilla – Issue 119994
[From Symphony]Cannot modify the second document even if close range picker in first document
Last modified: 2012-11-08 05:41:31 UTC
Build: AOO 3.4 Steps: 1. New a calc document. 2. From menu "Insert->Chart", click "Next" button in guide dialog 3. Click "Select data range" button. 3. New a Impress doc. 4. Switch back to Calc doc, the Calc doc is locked
Created attachment 78334 [details] Patch for Bug119994.patch Root Cause : On creation of SD, the Range picker dialog of the SC document is hidden, and it is in nonmodal state. When the new dialog for creation of SD is popped up, in its call of Dialog::SetModalInputMode, it changes its previous execute dialog( the Range picker dialog for SC ) to modal state without check whether the excuting dialog is in modal state. In the case of this bug, the Range picker dialog should not be changed to modal state becaused its range picker is running, and its user event should be handled by the SC document. If the Range picker dialog is incorrectly changed to modal state, it handle the user event and it is hidden, so the document can not respond to the user's mouse click on document, and the document is lock. Solution : In Dialog::SetModalInputMode, if prev-execute dialog is not in modal state, skip prev-execute dialog, and check the prev-prev-dialog, untill find a modal dialog.
I will take care of this.
Created attachment 78413 [details] Update fix patch Update solution
Root cause: When current model dialog is changed to modeless, previous model dialog needs be "reactive" (change to modeless then change back). In current implementation, a modeless dialog can be changed to model dialog as stated in defect description. Solution: Track up to find a model dialog then "rective" it.
Comment on attachment 78413 [details] Update fix patch Enable input must paired with disable input above. And must be pre-execute dialog. This is because it must disable input of prev-execute dialog to avoid close of prev-execute dialog
Fixed in revision 1359466.
Verified on r1374181. 1. New a calc document. 2. Open a Range Picker dialog. e.g. From menu "Insert -> Names -> Define", input a name, click Shrink button. 3. New another calc document. Can not move focus or input content in the secend calc file. With the range picker in Chart Data Range dialog, the behavior will be different. 1. New a calc document. 2. "Insert -> Chart", click Next button, click Shirink button. 3. New another calc document, input some content, close it without save. Then, click any where in the first calc file, to exit chart edit mode. Try to close the file, it can not be closed. Double click to active the chart, right click -> Data Ranges, click the Shirnk button. You can not open Range Picker dialog. I think there is something wrong with the dialog and document state. Pls double check the solution.
set Target Milestone to AOO 3.5.0 for PM purpose.
Verify Steps: 1. New a calc document. 2. From menu "Insert->Chart", click "Next" button in guide dialog 3. Click "Select data range" button. 3. New a Impress doc. 4. Switch back to Calc doc Verify pass on trunk r1404513