Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingRendererImpl.java
* if (pre.iObjIndex > 0) { try { Bounds bo = pre.getBounds();
		 * _g2d.setColor(Color.red); _g2d.setFont(new Font("Arial", Font.BOLD,
		 * 14)); _g2d.drawString("{0}" + pre.iObjIndex, (int) (bo.getLeft() +
		 * bo.getWidth() / 2), (int) (bo.getTop() + bo //
		 * i18n_CONCATENATIONS_REMOVED .getHeight() / 2)); } catch (Exception ex ) {
		 * ex.printStackTrace(); } }
		 */
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.chart.output.IPrimitiveRenderListener#drawArc(org.eclipse.birt.chart.output.ArcRenderEvent)
	 */
	public void drawArc( ArcRenderEvent are ) throws ChartException
	{
		
		final LineAttributes lia = are.getOutline( );
		if ( !validateLineAttributes( are.getSource( ), lia ) )
		{
			return;
		}
		
		final Color cFG = (Color) validateEdgeColor( lia.getColor( ),
				are.getBackground( ),
				_ids );
		if ( cFG == null || cFG.getAlpha( ) == 0 )
		{
			return;
		}