Bug 198909 page-break-after: avoid doesn't work in some special cases
page-break-after: avoid doesn't work in some special cases. Plese refer to attached report.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFImageLM.java
root.setContentHeight( Math.min( context.getMaxHeight( ),
				contentDimension.getHeight( ) ) );
	}
	/**
	 * Creates legend for chart.
	 * 
	 * @param imageContent
	 *            the image content of the chart.
	 * @param imageArea
	 *            the imageArea of the chart.
	 */
	private void processChartLegend( IImageContent imageContent,
			IImageArea imageArea )
	{
		if ( null == intrinsic )
		{
			return;
		}
		Object imageMapObject = imageContent.getImageMap( );
		boolean hasImageMap = ( imageMapObject != null )
				&& ( imageMapObject instanceof String )
				&& ( ( (String) imageMapObject ).length( ) > 0 );
		if ( hasImageMap )
		{
			createImageMap( (String) imageMapObject, imageArea );
		}
	}
	private void createImageMap( String imageMapObject, IImageArea imageArea )
	{
		Pattern pattern = Pattern