git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896548 13f79535-47bb-0310-9956-ffa450edef68tags/REL_5_2_0
@@ -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 { |