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.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java
{
					final ColorDefinition cd = (ColorDefinition) flBackground;
					
					if ( !( cd.isSetTransparency( ) && cd.getTransparency( ) == 0 ) )
					{
						final Color cBG = (Color) _ids.getColor( cd );
						final Color cPreviousBG = _gc.getBackground( );
						_gc.setBackground( cBG );
						R31Enhance.setAlpha( _gc, cd );
						_gc.fillArc( (int) ( ( are.getTopLeft( ).getX( ) + dTranslateX ) * dScale ),
								(int) ( ( are.getTopLeft( ).getY( ) + dTranslateY ) * dScale ),
								(int) ( are.getWidth( ) * dScale ),
								(int) ( are.getHeight( ) * dScale ),
								(int) are.getStartAngle( ),
								(int) are.getAngleExtent( ) );
						cBG.dispose( );
						_gc.setBackground( cPreviousBG );
					}
				}
				else if ( flBackground instanceof Gradient
						|| flBackground instanceof org.eclipse.birt.chart.model.attribute.Image )
				{
					double xc = ( ( are.getTopLeft( ).getX( ) + dTranslateX + are.getWidth( ) / 2d ) * dScale );
					double yc = ( ( are.getTopLeft( ).getY( ) + dTranslateY + are.getHeight( ) / 2d ) * dScale );
					double xs = 0, ys = 0;
					double angle = Math.toRadians( -are.getStartAngle( ) );
					xs = ( ( are.getTopLeft( ).getX( ) + dTranslateX + ( Math.cos( angle ) * 0.5 + 0.5 )
							* are.getWidth( ) ) * dScale );
					ys = ( ( are.getTopLeft( ).getY( ) + dTranslateY + ( Math.sin( angle ) * 0.5 + 0.5 )
							* are.getHeight( ) ) * dScale );