bug 61454: add column width to example Spreadsheet ToHtml; thanks to Christian Froehler

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808817 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-09-19 03:27:40 +00:00
parent 7a52b8c93b
commit 4835636fed

View File

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