Skip to content

Commit

Permalink
Fix bugzilla bug 314099:[Regression] Exception is thrown out when pre…
Browse files Browse the repository at this point in the history
…view a report with a HTML table as DOC.
  • Loading branch information
Jun Ouyang committed May 25, 2010
1 parent c40dcbf commit 9bf16e2
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -317,6 +317,12 @@ public void process( String value, StyleProperties sp )
DimensionType d = DimensionType.parserUnit( value );
if ( d != null )
{
String unit = d.getUnits( );
if ( unit == null || unit.length( ) == 0 )
{
d = new DimensionType( d.getMeasure( ),
DimensionType.UNITS_PX );
}
sp.addProperty( StyleProperties.WIDTH, d );
}
}
Expand All @@ -332,6 +338,12 @@ public void process( String value, StyleProperties sp )
DimensionType d = DimensionType.parserUnit( value );
if ( d != null )
{
String unit = d.getUnits( );
if ( unit == null || unit.length( ) == 0 )
{
d = new DimensionType( d.getMeasure( ),
DimensionType.UNITS_PX );
}
sp.addProperty( StyleProperties.HEIGHT, d );
}
}
Expand Down

0 comments on commit 9bf16e2

Please sign in to comment.