fix excel-ant tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-12-30 21:40:34 +00:00
parent c8fc960d2d
commit a83fe7d91f

View File

@ -164,7 +164,7 @@ public class ExcelAntWorkbookUtil extends Typedef {
*/
protected FormulaEvaluator getEvaluator(String fileName) {
FormulaEvaluator evaluator;
if (!fileName.endsWith(".xlsx")) {
if (fileName.endsWith(".xlsx")) {
if(xlsMacroList.isEmpty()) {
evaluator = new XSSFFormulaEvaluator((XSSFWorkbook) workbook);
} else {