Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321021 - Override of height or width breaks inheritance for charts
Summary: Override of height or width breaks inheritance for charts
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.6.2   Edit
Assignee: Yulin Wang CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-27 10:19 EDT by Sven Rieckhoff CLA
Modified: 2011-01-12 03:06 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Rieckhoff CLA 2010-07-27 10:19:01 EDT
Build Identifier: 2.6.0

If you use a chart from a rptlibrary in your report and change the chart's size in report (override height or width) then the chart's model (<xml-property name="xmlRepresentation"> ...) is copied from rptlibrary into the report. Hence inheritance for the chart's model is broken.

This problem seem not to apply to changes of other attributes except width and height.

Reproducible: Always

Steps to Reproduce:
1. Create a rptlibrary with one chart
2. Create a report using the rptlibrary
3. Add chart report item from library to report
4. Change width or height attribute or resize chart using its markers

Expected result:
In report design is only the height resp. width attribute overridden.

Actual result:
In report design the height resp. width attribute is overridden and the chart's model is copied from rptlibrary into the report design.
Comment 1 Yulin Wang CLA 2011-01-12 00:24:22 EST
The fix is to not update chart model bound size in design time, and defer this to runtime only.
Now size change in designer won't update chart model, so this operation won't flatten chart model from library to report design any more.
Comment 2 Maggie Shen CLA 2011-01-12 03:04:23 EST
verified on build 2.6.2 v20110112-0630.Chart model is not copied and link is not broken.

Xiaoying, please change the verify status.
Comment 3 Xiaoying Gu CLA 2011-01-12 03:06:07 EST
close.