Fix an issue
This commit is contained in:
parent
7716345a73
commit
c51cfac31e
|
@ -315,7 +315,9 @@ public class WordBuilder {
|
|||
if (section.getSections() != null) {
|
||||
createSections(section.getSections(), mainDocumentPart, ParagraphStyle.HEADER5, indent + 1, createListing, page, tempSectionString);
|
||||
}
|
||||
hasValue = createCompositeFields(section.getFieldSets(), mainDocumentPart, indent + 1, createListing, page, tempSectionString);
|
||||
if (section.getFieldSets() != null) {
|
||||
hasValue = createCompositeFields(section.getFieldSets(), mainDocumentPart, indent + 1, createListing, page, tempSectionString);
|
||||
}
|
||||
|
||||
if (!hasValue && paragraphPos > -1) {
|
||||
mainDocumentPart.removeBodyElement(paragraphPos);
|
||||
|
|
Loading…
Reference in New Issue