Issue 99895 - Pie Chart : Crash when empty data label
Summary: Pie Chart : Crash when empty data label
Status: CLOSED DUPLICATE of issue 94813
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: kla
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-04 20:49 UTC by diaz_frederic
Modified: 2013-02-24 21:20 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description diaz_frederic 2009-03-04 20:49:44 UTC
When we create a pie chart based on a selection of datas with one empty label.
it produces a crash 

Detailed procedure to reproduce the crash

   |   B    |   C   |
=====================
 7 |Label 1 |    7   |
===================== 
 8 |Label 2 |   30   |
=====================
 9 |Label 3 |   12   |
=====================
10 |Label 4 |   29   |
=====================
11 |Label 5 |    6   |
=====================
12 |        |   84   |
=====================

in C12 put =sum(C7:C11)

/!\ B12 must be empty

Select B7:C12 area					
Insert > Chart > Pie > Normal > Next					
Data series in columns					
First column as label > Next > Next					
Untick « Display legend » > Finish					
Edit datas (by double click to obtain blacks squares					
then another doubleclick on datapoints)					
Tab Options > Starting angle : 0 degrees					
Tab « Data Labels » > Tick « Show category »					
Select inferior sector of the pie (simple clic)					
We must see a rectangle with green squares					
Right clic on the rectangle > Object properties > tab Area choose white			Tab
borders > Style Invisible > Ok					
=========================================
Could it  be a problem of length of label variable which would produce a
division by zero in the code ????
Comment 1 jbf.faure 2009-03-04 21:23:51 UTC
I confirm the crash on ubuntu 8.04 for OOo 3.0.1 and OOO310m3.
In fact the crash is linked to the placement of categories. If you use default
choice (Best fit) OOo crashes but not if you do another choice.
Perhaps algorithm for best fit does a division by the length of category name
string.
Crash report ID : rbxw5vc

Regards
JBF
Comment 2 IngridvdM 2009-03-05 08:58:49 UTC
This is duplicate to issue 94813 and fixed within CWS chart35. I can confirm
that the problem was caused by the 'best fit' label placement with empty labels.

*** This issue has been marked as a duplicate of 94813 ***
Comment 3 IngridvdM 2009-03-05 08:59:27 UTC
closed as duplicate
Comment 4 jbf.faure 2009-03-05 10:32:36 UTC
Really duplicate of 94813 ? This one is not related to xls format.

Regards
JBF
Comment 5 IngridvdM 2009-03-05 11:36:05 UTC
That the example document of the other issue is xls format is not relevant. I
changed the summary there accordingly.