package org.apache.poi.hssf.record.formula.functions;
-import org.apache.poi.hssf.record.formula.eval.AreaEval;
import org.apache.poi.hssf.record.formula.eval.BlankEval;
import org.apache.poi.hssf.record.formula.eval.BoolEval;
import org.apache.poi.hssf.record.formula.eval.ErrorEval;
import org.apache.poi.hssf.record.formula.eval.RefEval;
import org.apache.poi.hssf.record.formula.eval.StringEval;
import org.apache.poi.hssf.record.formula.eval.ValueEval;
+import org.apache.poi.ss.formula.TwoDEval;
/**
* @author Amol S. Deshmukh < amolweb at ya hoo dot com >
*/
private void collectValues(ValueEval operand, DoubleList temp) throws EvaluationException {
- if (operand instanceof AreaEval) {
- AreaEval ae = (AreaEval) operand;
+ if (operand instanceof TwoDEval) {
+ TwoDEval ae = (TwoDEval) operand;
int width = ae.getWidth();
int height = ae.getHeight();
for (int rrIx=0; rrIx<height; rrIx++) {
for (int rcIx=0; rcIx<width; rcIx++) {
- ValueEval ve = ae.getRelativeValue(rrIx, rcIx);
+ ValueEval ve = ae.getValue(rrIx, rcIx);
collectValue(ve, true, temp);
}
}