[github-261] Correct Maximum Width Calculation of unmerged Cells. Thanks to thoniTUB. This closes #261

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894127 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-10-11 10:25:58 +00:00
parent 3e8d6b4bbd
commit cdbbbb6726

View 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);
}
}