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.engine/src/org/eclipse/birt/chart/factory/Generator.java
}
			else if ( newStyle.getFont( ) != null )
			{
				FontDefinition fd = currentStyle.getFont( );
				FontDefinition newFd = FontDefinitionImpl.copyInstance( newStyle.getFont( ) );
				ChartUtil.mergeFont( fd, newFd );
			}
			if ( currentStyle.getColor( ) == null
					&& newStyle.getColor( ) != null )
			{
				currentStyle.setColor( ColorDefinitionImpl.copyInstance( newStyle.getColor( ) ) );
			}
		}
		
		FontDefinition fd = currentStyle.getFont( );
		if ( fd != null
				&& fd.getName( ) != null
				&& fd.isSetSize( )
				&& fd.isSetBold( )
				&& fd.isSetItalic( )
				&& fd.isSetRotation( )
				&& fd.isSetWordWrap( )
				&& fd.isSetUnderline( )
				&& fd.isSetStrikethrough( )
				&& fd.getAlignment( ) != null
				&& fd.getAlignment( ).isSetHorizontalAlignment( )
				&& currentStyle.getColor( ) != null )
		{
			return true;
		}