Changeset 1186


Ignore:
Timestamp:
08/18/10 04:25:37 (18 months ago)
Author:
jharrop
Message:

Unless debug-level logging is enabled, silently output nothing if bullets/numbering results in null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/convert/out/pdf/viaXSLFO/Conversion.java

    r1185 r1186  
    616616                                 
    617617                                if (triple==null) { 
    618                                 log.info("computed number ResultTriple was null"); 
    619                                         foListItemLabelBody.setTextContent("?"); 
     618                                log.warn("computed number ResultTriple was null"); 
     619                                if (log.isDebugEnabled() ) { 
     620                                        foListItemLabelBody.setTextContent("nrt"); 
     621                                }  
    620622                        } else { 
    621623                                 
     
    639641                                        foListItemLabelBody.setTextContent(triple.getBullet() ); 
    640642                                } else if (triple.getNumString()==null) { 
    641                                         log.error("computed NumString was null!"); 
    642                                                 foListItemLabelBody.setTextContent("?"); 
     643                                        log.warn("computed NumString was null!"); 
     644                                        if (log.isDebugEnabled() ) { 
     645                                                foListItemLabelBody.setTextContent("nns"); 
     646                                        }  
    643647                                } else { 
    644648                                                Text number = document.createTextNode( triple.getNumString() ); 
Note: See TracChangeset for help on using the changeset viewer.