]> source.dussan.org Git - poi.git/commitdiff
fix excel-ant tests
authorPJ Fanning <fanningpj@apache.org>
Thu, 30 Dec 2021 21:40:34 +0000 (21:40 +0000)
committerPJ Fanning <fanningpj@apache.org>
Thu, 30 Dec 2021 21:40:34 +0000 (21:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896548 13f79535-47bb-0310-9956-ffa450edef68

poi-excelant/src/main/java/org/apache/poi/ss/excelant/util/ExcelAntWorkbookUtil.java

index 2541b5174aa4fedeaf012ba6aca33d54eac9867f..3afd5f19ba550f02a80e839fd4e17dcfbb535c1b 100644 (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 {