Project: Birt
Bug 104627 Long Axis title will cause chart preview fail
Reported: 2005-07-21 05:20:12 | Status: closed fixed

description: Long Axis title will cause chart preview fail steps to reproduce: 1. copy three line text to X Axis title 2. preview won't return chart actual result: "------------------------------------------------------------------------------ -- There are errors on the report page: - There are error(s) in Chart:null Error0 : Error.ExtendedItemRenderingError(1 time)detail: There are problems(s) rendering Chart extended item .$NO-RB$ Zero length string passed to TextLayout constructor.$NO-RB$ Zero length string passed to TextLayout constructor.Zero length string passed to TextLayout constructor." display in HTML page when preview expected result: Long title will cause chart preview fail

Files changed in fix:
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/BmpRendererImpl.java chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/BmpWriter.java chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/GifRendererImpl.java chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/JavaxImageIOWriter.java chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingEventHandler.java chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingTextMetrics.java chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartChoiceDefinitionImpl.java