From edfd7a2b427159c587f50c8e4868988e96355670 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Thu, 21 Jul 2011 03:38:52 +0000 Subject: [PATCH] fix missing css in Word-to-HTML converter if getDocument() not called git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149026 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/converter/WordToHtmlConverter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlConverter.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlConverter.java index bd88280853..bd2472fbf0 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlConverter.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlConverter.java @@ -164,7 +164,6 @@ public class WordToHtmlConverter extends AbstractWordConverter public Document getDocument() { - htmlDocumentFacade.updateStylesheet(); return htmlDocumentFacade.getDocument(); } @@ -232,6 +231,8 @@ public class WordToHtmlConverter extends AbstractWordConverter if ( notes != null ) htmlDocumentFacade.getBody().appendChild( notes ); + + htmlDocumentFacade.updateStylesheet(); } @Override -- 2.39.5