Bug 147861 [2.1RC4] Invalid line height: normal
Version: Report Engine, 2.1RC4 I'm using the "Report Engine" for creating my reports. When I look a the log file I see the following line many (1000+) times: 20.06.2006 13:36:23 org.eclipse.birt.report.engine.layout.util.PropertyUtil getLineHeight WARNUNG: invalid line height: normal For recreating the bug: 1. Start new report 2. Add a "Grid widget" 3. Run report In my opinion a default setting should not produce a log message at level warning.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/PropertyUtil.java
return getDimensionValue(style.getProperty(StyleConstants.STYLE_MARGIN_TOP)) 
    			+ getDimensionValue(style.getProperty(StyleConstants.STYLE_BORDER_TOP_WIDTH))
    			+ getDimensionValue(style.getProperty(StyleConstants.STYLE_PADDING_TOP));
    	}
    	return 0;
    }
    
    public static int getLeftAllocatedSpace(IStyle style)
    {
    	if(style!=null)
    	{
    		return getDimensionValue(style.getProperty(StyleConstants.STYLE_MARGIN_LEFT)) 
    			+ getDimensionValue(style.getProperty(StyleConstants.STYLE_BORDER_LEFT_WIDTH))
    			+ getDimensionValue(style.getProperty(StyleConstants.STYLE_PADDING_LEFT));
    	}
    	return 0;
    }
    
    public static int getRightAllocatedSpace(IStyle style)
    {
    	if(style!=null)
    	{
    		return getDimensionValue(style.getProperty(StyleConstants.STYLE_MARGIN_RIGHT)) 
    			+ getDimensionValue(style.getProperty(StyleConstants.STYLE_BORDER_RIGHT_WIDTH))
    			+ getDimensionValue(style.getProperty(StyleConstants.STYLE_PADDING_RIGHT));
    	}
    	return 0;
    }
}