Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321021

Summary: Override of height or width breaks inheritance for charts
Product: z_Archived Reporter: Sven Rieckhoff <srieckhoff>
Component: BIRTAssignee: Yulin Wang <Lionel.wyl>
Status: VERIFIED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, Lionel.wyl, lshen
Version: unspecified   
Target Milestone: 2.6.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.