Issue 51307 - Ommitted position and size attributes in Chart XML lead to strange values
Summary: Ommitted position and size attributes in Chart XML lead to strange values
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: kla
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-28 13:02 UTC by bjoern.milcke
Modified: 2013-02-24 21:22 UTC (History)
1 user (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 bjoern.milcke 2005-06-28 13:02:39 UTC
1. Create a default chart (where no object has been moved or resized)
2. Save
3. Remove the positions of diagram, legend or titles (main, sub or axis-titles)
or the size of the diagram in the XML file.*
=> When loading the file the positions and sizes do not match the original defaults.

*Notes:
1. It is a bug that default positions and sizes (except the size in the
chart-element) are written to the file
2. The non-existence of positions and sizes is conforming to the OASIS
specification and should result in the corrrect default positions, including
proper auto-arrangement (e.g. the diagram size changes when you change the
legend preset-position from right to bottom).
3. Other programs like Gnumeric or KChart may ommit the positions and size in
the file. This should result in the proper defaults in OOo 2.0. Specifically, we
plan to ommit the default positions and size in OOo 3.0 (or whatever the next
release might be called)

Testing Notes: As there exist currently no files without positions of chart
objects (except those being patched by hand) I wouldn't test this. For this bug,
it would be enough to ensure that loading of files created with OOo 2.0 works
like before (if the fix is done properly, the exact same instructions should be
executed for files created with OOo 2.0). Note again, that saving will not be
changed, only loading (the import).
Comment 1 bjoern.milcke 2005-06-30 10:54:26 UTC
Fixed

Developer's Note: There are changes in headers that are delivered, but those are
compatible (an enum was extended) and the affected ojects are only used inside
xmloff/source/chart (checked with LXR)
Comment 2 bjoern.milcke 2005-06-30 15:27:04 UTC
please verify in CWS sch10

re-open issue and reassign to kla@openoffice.org
Comment 3 bjoern.milcke 2005-06-30 15:27:10 UTC
reassign to kla@openoffice.org
Comment 4 bjoern.milcke 2005-06-30 15:27:16 UTC
reset resolution to FIXED
Comment 5 kla 2005-07-04 10:13:55 UTC
kla: verified in cws sch10
Comment 6 bjoern.milcke 2005-07-06 16:27:10 UTC
Note: review done by IHA
Comment 7 kla 2005-07-08 10:03:04 UTC
ok in master m115 -> closed