]> source.dussan.org Git - poi.git/commitdiff
fix missing css in Word-to-HTML converter if getDocument() not called
authorSergey Vladimirov <sergey@apache.org>
Thu, 21 Jul 2011 03:38:52 +0000 (03:38 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 21 Jul 2011 03:38:52 +0000 (03:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149026 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlConverter.java

index bd8828085334002357d37f76ca53ad0df5c9d10c..bd2472fbf002a477cdeb5af7776f5ca34d80da83 100644 (file)
@@ -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