]> source.dussan.org Git - poi.git/commitdiff
Necessary fix of FunctionEval (follow-on to patch 47768)
authorYegor Kozlov <yegor@apache.org>
Thu, 10 Sep 2009 13:51:26 +0000 (13:51 +0000)
committerYegor Kozlov <yegor@apache.org>
Thu, 10 Sep 2009 13:51:26 +0000 (13:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@813440 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/formula/eval/FunctionEval.java

index 19476c9f137f1da98047079578be738b00576095..583cf88b8ec96d721869fdf81d5f820204da8efc 100644 (file)
@@ -55,7 +55,6 @@ public final class FunctionEval implements OperationEval {
                retval[0] = new Count();
                retval[1] = new If();
                retval[2] = new IsNa();
-
                retval[3] = new IsError();
                retval[ID.SUM] = AggregateFunction.SUM;
                retval[5] = AggregateFunction.AVERAGE;
@@ -64,7 +63,7 @@ public final class FunctionEval implements OperationEval {
                retval[8] = new Row(); // ROW
                retval[9] = new Column();
                retval[10] = new Na();
-
+               retval[11] = new Npv();
                retval[12] = AggregateFunction.STDEV;
                retval[13] = NumericFunction.DOLLAR;
 
@@ -155,6 +154,7 @@ public final class FunctionEval implements OperationEval {
                retval[212] = NumericFunction.ROUNDUP;
                retval[213] = NumericFunction.ROUNDDOWN;
 
+        retval[220] = new Days360();
                retval[221] = new Today();
 
                retval[227] = AggregateFunction.MEDIAN;