Bug 195951 Focus for PNG does not work [13]
Description: Focus for PNG does not work. Build number: 2.2.0.v20070710-1223 Steps to reproduce: 1. New a Chart, set Output Format as PNG, in "Format Chart" tab, add interactivity for Value Series, Event: Focus, Action: Hyperlink or invoke script. 2. Preview, focus in Value Series. Expected result: Interactivity works. Actual result: It does not work. Error log: N/A
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/JavaxImageIOWriter.java
super.before( );
		_bImageExternallySpecified = ( _img != null );
		
		
		if ( !_bImageExternallySpecified )
		{
			if ( _bo == null ) 
			
			{
				throw new ChartException( ChartDeviceExtensionPlugin.ID,
						ChartException.RENDERING,
						"JavaxImageIOWriter.exception.no.bounds", 
						Messages.getResourceBundle( getULocale( ) ) );
			}
			if ( (int) _bo.getWidth( ) < 0 || (int) _bo.getHeight( ) < 0 )
			{
				throw new ChartException( ChartDeviceExtensionPlugin.ID,
						ChartException.INVALID_IMAGE_SIZE,
						"JavaxImageIOWriter.exception.invalid.image.size", 
						Messages.getResourceBundle( getULocale( ) ) );
			}
			
			if ( (int) _bo.getWidth( ) == 0 || (int) _bo.getHeight( ) == 0 )
			{
				
				
				_bo.setWidth( 1 );
				_bo.setHeight( 1 );
			}