]> source.dussan.org Git - poi.git/commitdiff
bug 61454: add column width to example Spreadsheet ToHtml; thanks to Christian Froehler
authorJaven O'Neal <onealj@apache.org>
Tue, 19 Sep 2017 03:27:40 +0000 (03:27 +0000)
committerJaven O'Neal <onealj@apache.org>
Tue, 19 Sep 2017 03:27:40 +0000 (03:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808817 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/ss/examples/html/ToHtml.java

index 1034a3b2f33dd9649cb1a72fbc25b2021376f0cb..97e06af9c6b24da3ca8328dd5bde70c66533a9ae 100644 (file)
@@ -391,7 +391,7 @@ public class ToHtml {
         tableWidth += headerColWidth;
 
         for (int i = firstColumn; i < endColumn; i++) {
-            int colWidth = poiWidthToPixels(sheet.getColumnWidth(i));
+            int colWidth = widthToPixels(sheet.getColumnWidth(i));
             ret.put(i, colWidth);
             tableWidth += colWidth;
         }