Apache OpenOffice (AOO) Bugzilla – Issue 38778
Insert and delete a chart and then OOo crashes when saving Calc document
Last modified: 2013-02-24 21:21:50 UTC
I have seen numerous complaints about inserting and removing named charts causes OOo to crash when a calc document is saved, so I created a macro to duplicate the problem. Run the macro twice and then try to save the document. This crashes with 1.1.4RC and 1.1.3. Option Explicit Sub Main Add_it() Delete_It() End Sub Sub Add_It Dim rRect As New com.sun.star.awt.Rectangle Dim oSheet rRect.x = 2500 rRect.y = 3000 rRect.width = 10000 rRect.height = 8000 oSheet = ThisComponent.getSheets().getByIndex(0) oSheet.getCharts().addNewByName("DName", rRect, _ Array(oSheet.getCellRangeByName("C2:D10").getRangeAddress), false, false) End Sub Sub Delete_It Dim oSheet oSheet = ThisComponent.getSheets().getByIndex(0) oSheet.getCharts().removeByName("DName") End Sub
Created attachment 20358 [details] Run the main macro twice and then try to save the document. OOo will crash.
seems to be an calc issue. ->FST: please take over
reproduced for 1.1.4RC (it shouldn't matter which 1.1.x version) when running macro twice. Now the weird part is that I can't reproduce this bug simply through the UI, it somehow only occurs when using the API. Christian
Hi, checked it on OOo1.1.4 and ccan reproduce. Checked it also on OOo1.9.65 and can't reproduce. As the circumstances to get this replicated are verry special I close this one as fixed for OOo2.0. No further action is taken to fix it for the OOo1.1x Series. Frank
closed fixed