Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingEventHandler.java
}
				}
				idx++;
			}
		}
		if ( highlighted && lineContext.size( ) > 0 )
		{
			iun.putContext( se, lineContext );
		}
		return changed;
	}
	private void performHighlight( ColorDefinition cd, boolean highlighted )
	{
		if ( cd != null )
		{
			if ( highlighted )
			{
				cd.setRed( ( cd.getRed( ) + 255 ) / 2 );
				cd.setGreen( ( cd.getGreen( ) + 255 ) / 2 );
				cd.setBlue( ( cd.getBlue( ) + 255 ) / 2 );
			}
			else
			{
				cd.setRed( Math.max( 0, cd.getRed( ) * 2 - 255 ) );
				cd.setGreen( Math.max( 0, cd.getGreen( ) * 2 - 255 ) );
				cd.setBlue( Math.max( 0, cd.getBlue( ) * 2 - 255 ) );
			}
		}
	}
}