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.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
if (width > img.scaledWidth() && height > img.scaledHeight()) {
						template = cbUnder.createTemplate(img.scaledWidth(), img
								.scaledHeight());
						template.addImage(img, img.scaledWidth(), 0, 0, img
								.scaledHeight(), 0, 0);
					}
					while (remainY > 0) {
						remainX = width;
						
						if (remainY < img.scaledHeight()) {
							while (remainX > 0) {
								
								if (remainX < img.scaledWidth()) {
									PdfTemplate templateXY = cbUnder
											.createTemplate(remainX, remainY);
									templateXY.addImage(img, img.scaledWidth(), 0,
											0, img.scaledHeight(), 0, -img
													.scaledHeight()
													+ remainY);
									cbUnder.addTemplate(templateXY, x + width
											- remainX, y - height);
									remainX = 0;
								} else
								
								{
									PdfTemplate templateY = cbUnder.createTemplate(
											img.scaledWidth(), remainY);
									templateY.addImage(img, img.scaledWidth(), 0,
											0, img.scaledHeight(), 0, -img
													.scaledHeight()