Issue 99895

Summary: Pie Chart : Crash when empty data label
Product: General Reporter: diaz_frederic <diaz_frederic>
Component: chartAssignee: kla <thomas.klarhoefer>
Status: CLOSED DUPLICATE QA Contact: issues@graphics <issues>
Severity: Trivial    
Priority: P3 CC: IngridvdM, issues, jbf.faure
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

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.