Bug 188235 [Regression]Chart legend position is incorrect
Steps to reproduce: 1. Set plot width = 150; height = 150; 2. Set legend position = right; Expected result: Legend is in the right side of plot. Actual result: Legend position is not plot left offset + plot width; but only plot width. So plot and legend are overlapped together.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/layout/LayoutManager.java
Bounds boTitle = tb.getBounds( );
		Anchor titleAnchor = tb.getAnchor( );
		boTitle.setLeft( bo.getLeft( ) );
		boTitle.setTop( bo.getTop( ) );
		boTitle.setWidth( szTitle.getWidth( ) );
		boTitle.setHeight( szTitle.getHeight( ) );
		Size szLegend = ( !lg.isVisible( ) ) ? SizeImpl.create( 0, 0 )
				: lg.getPreferredSize( xs, cm, rtc );
		if ( !lg.isSetPosition( ) )
		{
			throw new ChartException( ChartEnginePlugin.ID,
					ChartException.GENERATION,
					Messages.getString( "error.legend.position", 
							ULocale.getDefault( ) ) );
		}
		double plotWidthHint = -1, plotHeightHint = -1;
		if ( pl.isSetWidthHint( ) )
		{
			plotWidthHint = pl.getWidthHint( );
		}
		if ( pl.isSetHeightHint( ) )
		{
			plotHeightHint = pl.getHeightHint( );
		}
		double plotLeft, plotTop;
		
		Position lgPos = lg.getPosition( );
		Anchor plotAnchor = pl.getAnchor( );
		
		if ( isRightToLeft )