Bug 181113 NPE throws out when preview crosstab in doc on BIRT RCP[1202]
engine/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java
}
	
	public static double convertImageSize ( DimensionType value, int ref )
	{
		if(value == null)
		{
			return ref * PX_PT;
		}
		
		if (DimensionType.UNITS_PX.equalsIgnoreCase ( value.getUnits ( ) ))
		{
			return value.getMeasure ( ) * PX_PT;
		}
		else if (DimensionType.UNITS_PERCENTAGE.equalsIgnoreCase ( value
				.getUnits ( ) ))
		{
			return (value.getMeasure ( ) / 100) * ref * PX_PT ;
		}
		else
		{
			return value.convertTo ( DimensionType.UNITS_IN ) * INCH_PT ;
		}
	}
	
	public static double twipToPt(double t)
	{
		return  t / PT_TWIPS;		
	}
}