<changes>
<release version="3.9-beta1" date="2012-??-??">
+ <action dev="poi-developers" type="add">52863 - add workaround for files with broken CHP SPRMs</action>
<action dev="poi-developers" type="fix">53182 - Reading combined character styling and direct formatting of a character run</action>
<action dev="poi-developers" type="fix">52311 - Conversion to html : Problem in titles number </action>
<action dev="poi-developers" type="fix">53914 - TableRow#getTopBorder() return bottom's border</action>
Integer style = getIstd( grpprl, offset );
if ( style != null )
{
- applySprms( parStyle, styleSheet.getCHPX( style ), 0, false,
- newProperties );
+ try
+ {
+ applySprms( parStyle, styleSheet.getCHPX( style ), 0, false,
+ newProperties );
+ }
+ catch ( Exception exc )
+ {
+ logger.log( POILogger.ERROR, "Unable to apply all style ",
+ style, " CHP SPRMs to CHP: ", exc, exc );
+ }
}
CharacterProperties styleProperties = newProperties;
newProperties = styleProperties.clone();
- applySprms( styleProperties, grpprl, offset, true, newProperties );
+ try
+ {
+ applySprms( styleProperties, grpprl, offset, true, newProperties );
+ }
+ catch ( Exception exc )
+ {
+ logger.log( POILogger.ERROR,
+ "Unable to process all direct CHP SPRMs: ", exc, exc );
+ }
return newProperties;
}
private static Integer getIstd( byte[] grpprl, int offset )
{
Integer style = null;
+ try
{
SprmIterator sprmIt = new SprmIterator( grpprl, offset );
while ( sprmIt.hasNext() )
}
}
}
+ catch ( Exception exc )
+ {
+ logger.log( POILogger.ERROR,
+ "Unable to extract istd from direct CHP SPRM: ", exc, exc );
+ }
return style;
}