- Timestamp:
- 02/27/10 06:52:46 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/convert/out/pdf/viaXSLFO/Conversion.java
r1024 r1096 353 353 // which implements org.w3c.dom.traversal.NodeIterator 354 354 355 String defaultParagraphStyleId = wmlPackage.getMainDocumentPart().getStyleDefinitionsPart().getDefaultParagraphStyle().getStyleId(); 356 355 357 if ( pStyleVal ==null || pStyleVal.equals("") ) { 356 pStyleVal = "Normal"; 358 // pStyleVal = "Normal"; 359 pStyleVal = defaultParagraphStyleId; 357 360 } 358 361 log.debug("style '" + pStyleVal ); … … 375 378 if (pPrNodeIt==null) { // Never happens? 376 379 log.debug("Here after all!!"); 377 pPr = propertyResolver.getEffectivePPr( "Normal");378 rPr = propertyResolver.getEffectiveRPr( "Normal");380 pPr = propertyResolver.getEffectivePPr(defaultParagraphStyleId); 381 rPr = propertyResolver.getEffectiveRPr(defaultParagraphStyleId); 379 382 } else { 380 383 Node n = pPrNodeIt.nextNode(); 381 384 if (n==null) { 382 385 log.warn("pPrNodeIt.nextNode() was null."); 383 pPr = propertyResolver.getEffectivePPr( "Normal");384 rPr = propertyResolver.getEffectiveRPr( "Normal");386 pPr = propertyResolver.getEffectivePPr(defaultParagraphStyleId); 387 rPr = propertyResolver.getEffectiveRPr(defaultParagraphStyleId); 385 388 // TODO - in this case, we should be able to compute once, 386 389 // and on subsequent calls, just return pre computed value
Note: See TracChangeset
for help on using the changeset viewer.
