Bug 160641 Image from Fragments can not be preview
Details: Image from Fragments can not be preview Step: 1.New an image and select "Image file in BIRT resource folder" 2.Select the image that in Fragments. 3.Preview Actual result: The image can not be preview Excepted result: The image can be preview
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFImageLM.java
protected void init( )
	{
		assert ( content instanceof IImageContent );
		image = (IImageContent) content;
		maxWidth = parent.getMaxAvaWidth( );
		
		Dimension contentDimension = getSpecifiedDimension( image );
		root = (ContainerArea) createInlineContainer( image, true,
				true );
		validateBoxProperty( root.getStyle( ), maxWidth, context.getMaxHeight( ) );
		
		
		root.setAllocatedWidth( maxWidth );
		int maxContentWidth = root.getContentWidth( );
		if(contentDimension.getWidth() > maxContentWidth)
		{
			contentDimension.setDimension(maxContentWidth, (int)(maxContentWidth/contentDimension.getRatio()));
		}
		
		ImageArea imageArea = (ImageArea)AreaFactory.createImageArea( image );
		imageArea.setWidth(contentDimension.getWidth());
		imageArea.setHeight(contentDimension.getHeight());
		root.addChild(imageArea);
		
		imageArea.setPosition( root.getContentX( ), root.getContentY( ) );
		root.setContentWidth( contentDimension.getWidth( ) );
		root.setContentHeight( contentDimension.getHeight( ) );
	}
	
}