Issue 63294 - Crash when deleting columns in a chart with column-mapping
Summary: Crash when deleting columns in a chart with column-mapping
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: kla
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-17 10:29 UTC by kla
Modified: 2013-02-24 21:21 UTC (History)
1 user (show)

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


Attachments
Chart with column-mapping (16.81 KB, application/vnd.sun.xml.impress)
2006-03-17 10:43 UTC, bjoern.milcke
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kla 2006-03-17 10:29:24 UTC
Create a chart into the Calc.
Copy into Impress/Writer
Chart inplace
Open Datarange by using Kontext
Delete all Columns without the first one.
Apply by using the Apply-Button.
->crash
Comment 1 bjoern.milcke 2006-03-17 10:43:14 UTC
Created attachment 34951 [details]
Chart with column-mapping
Comment 2 bjoern.milcke 2006-03-17 10:49:27 UTC
The problem occurs with charts that have a column mapping (see
chart:column-mapping attribute in chart:chart element of context.xml stream).

Assume having a column mapping e.g. "2 1 0" which means the first and the last
series are swapped in their order. If you delete the last data column, the
mapping becomes invalid and must be updated. What you get is "<no series> 1 0"
which should then become just "1 0". Maybe this update is not done correctly and
you get sth. like "2 1" which contains an illegal index to a no-longer-existing
third series.
Comment 3 bjoern.milcke 2006-03-17 10:54:24 UTC
->TK: Changed the subject. Another thing: I couldn't apply a column mapping to a
chart any more via the UI (for the bugdoc, I tweaked the file). Do you have an
idea when the "Arrangement" context menu entry shows the subentries "Bring
Forward" and "Move Backwards"? I thought it was available at least for 3d deep
chart types, but couldn't get it anywhere in a OOo 2.0.2. Is this probably
broken? Please check.
Comment 4 bjoern.milcke 2006-03-17 12:17:37 UTC
Addition to the last comment: The Arrangement feature only works for external
data. As we are currently limited to getting data from a rectangular region, we
have the additional mapping for being able to change the series order.

If a chart has its own data, there is no need to use column- and row-mapping.
The swap-buttons in the chart data editor really copy the data instead of
modifying the mappings.

So we only get this bug, when the arrangement of series has been changed in a
chart with external data which is then copied, so that it has own data.

As said before, the arrangement settings are not used when creating charts with
own data. Therefore on copy paste, where data is transfered from an external
source to an internal data pool, we should also drop the mapping by applying it
to the data.
Comment 5 bjoern.milcke 2006-03-28 09:34:20 UTC
SchMemChart::UpdateTranslation was completely buggy.
Comment 6 bjoern.milcke 2006-03-29 09:11:03 UTC
Please verify on sch14. Test with the attached file as well as the internal
document where this issue first occured with.

re-open issue and reassign to kla@openoffice.org
Comment 7 bjoern.milcke 2006-03-29 09:11:07 UTC
reassign to kla@openoffice.org
Comment 8 bjoern.milcke 2006-03-29 09:11:10 UTC
reset resolution to FIXED
Comment 9 kla 2006-03-31 10:24:27 UTC
verified into CWS sch14
Comment 10 kla 2006-05-12 13:36:59 UTC
seen ok into the master -> closed