Bug 168837 The gradient with transparent color does not work [0001]
Description: The background gradient color does not work. Build number: 2.1.2.v20061221-0710 Steps to reproduce: 1. Preview the attached design file. Expected result: Background gradient color both work when preview and in Layout. Actual result: Background gradient color does not work when preview but work in Layout. Error log: N/A
chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGGraphics2D.java
int index = paints.indexOf( gp );
			if ( index == -1 )
			{
				paints.add( gp );
				definitions.appendChild( createGradientPaint( gp, false ));
				definitions.appendChild( createGradientPaint( gp, true ));
			}
			else
			{
				gp = (SVGGradientPaint) paints.get( index );
			}
			this.paint = gp;
		}
		else
			this.paint = paint;
	}
	/***************************************************************************
	 * Factory Methods
	 **************************************************************************/
	protected Element createGradientPaint( SVGGradientPaint paint, boolean highlight )
	{
		Element elem = dom.createElement( "linearGradient" ); 
		if (highlight)
			elem.setAttribute( "id", paint.getId( )+"h" ); 
		else
			elem.setAttribute( "id", paint.getId( ) ); 
		elem.setAttribute( "x1", Double.toString( paint.getPoint1( ).getX( ) ) ); 
		elem.setAttribute( "y1", Double.toString( paint.getPoint1( ).getY( ) ) ); 
		elem.setAttribute( "x2", Double.toString( paint.getPoint2( ).getX( ) ) ); 
		elem.setAttribute( "y2", Double.toString( paint.getPoint2( ).getY( ) ) );