Bug 168839 Chart Legend Toggle Visibility does not work correctly for Pie chart in SVG[0001]
Description: Chart Legend Toggle Visibility does not work correctly . Build number: 2.1.2.v20061221-0710 Steps to reproduce: 1. Preview the attached design file. 2. Click the legend. Expected result: Toggle Visibility works correctly. Actual result: Pie slice of different color disappears when being click. Error log: N/A
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
dX = bo.getLeft( );
			dY = bo.getTop( );
			sz = SizeImpl.create( bo.getWidth( ), bo.getHeight( ) );
		}
		
		final LegendLayoutHints lilh = rtc.getLegendLayoutHints( );
		if ( lilh == null )
		{
			throw new ChartException( ChartEnginePlugin.ID,
					ChartException.RENDERING,
					"exception.null.legend.layout.hints", 
					Messages.getResourceBundle( rtc.getULocale( ) ) );
		}
		
		Label lgTitle = lg.getTitle( );
		double lgTitleWidth = 0, lgTitleHeight = 0;
		double yOffset = 0, xOffset = 0, wOffset = 0, hOffset = 0;
		final boolean bRenderLegendTitle = lgTitle != null
				&& lgTitle.isSetVisible( )
				&& lgTitle.isVisible( );
		int iTitlePos = Position.ABOVE;
		if ( bRenderLegendTitle )
		{
			lgTitle = LabelImpl.copyInstance( lgTitle );
			
			final String sPreviousValue = lgTitle.getCaption( ).getValue( );
			lgTitle.getCaption( )
					.setValue( rtc.externalizedMessage( sPreviousValue ) );