Issue 38778 - Insert and delete a chart and then OOo crashes when saving Calc document
Summary: Insert and delete a chart and then OOo crashes when saving Calc document
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: frank
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-10 06:07 UTC by andrew
Modified: 2013-02-24 21:21 UTC (History)
1 user (show)

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


Attachments
Run the main macro twice and then try to save the document. OOo will crash. (6.64 KB, application/vnd.sun.xml.calc)
2004-12-10 06:09 UTC, andrew
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description andrew 2004-12-10 06:07:42 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
Comment 1 andrew 2004-12-10 06:09:00 UTC
Created attachment 20358 [details]
Run the main macro twice and then try to save the document. OOo will crash.
Comment 2 kla 2004-12-10 08:13:51 UTC
seems to be an calc issue.
->FST: please take over
Comment 3 christianjunker 2004-12-10 14:50:44 UTC
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
Comment 4 frank 2005-01-10 15:36:25 UTC
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
Comment 5 frank 2005-01-10 15:36:53 UTC
closed fixed