]> source.dussan.org Git - poi.git/commitdiff
[github-261] Correct Maximum Width Calculation of unmerged Cells. Thanks to thoniTUB...
authorPJ Fanning <fanningpj@apache.org>
Mon, 11 Oct 2021 10:25:58 +0000 (10:25 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 11 Oct 2021 10:25:58 +0000 (10:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894127 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/AutoSizeColumnTracker.java

index 43bfdf9f834e268a3f8dfccc80f0c111a3fb76da..82359fe80bfe1d7c101adf415e4f521a7c633761 100644 (file)
@@ -102,7 +102,7 @@ import org.apache.poi.util.Internal;
          */
         public void setMaxColumnWidths(double unmergedWidth, double mergedWidth) {
             withUseMergedCells = Math.max(withUseMergedCells, mergedWidth);
-            withSkipMergedCells = Math.max(withUseMergedCells, unmergedWidth);
+            withSkipMergedCells = Math.max(withSkipMergedCells, unmergedWidth);
         }
     }