Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 244882
Collapse All | Expand All

(-)src/org/eclipse/birt/report/engine/emitter/wpml/WordEmitterImpl.java (+15 lines)
Lines 807-812 Link Here
807
807
808
		double width = WordUtil.convertImageSize( image.getWidth( ), defaultW );
808
		double width = WordUtil.convertImageSize( image.getWidth( ), defaultW );
809
809
810
		// recalculate the width ,height according to the cellwidth
811
		double originalRatio = height / width;
812
813
		// //1 inch = 25.4mm 72pt = 1 inch
814
		// pt is absolute measure different from relative measure px
815
816
		double cellWidth = WordUtil.twipToPt( context.getCurrentWidth( ) );
817
818
		if ( width > cellWidth )
819
		{
820
			width = cellWidth;
821
822
			height = (int) ( width * originalRatio );
823
824
		}
810
		// //1 inch = 25.4mm 72pt = 1 inch
825
		// //1 inch = 25.4mm 72pt = 1 inch
811
		// pt is absolute measure different from relative measure px
826
		// pt is absolute measure different from relative measure px
812
827

Return to bug 244882