View | Details | Raw Unified | Return to bug 56146
Collapse All | Expand All

(-)src/java/org/apache/poi/ss/formula/functions/Quotient.java (-2 / +4 lines)
Lines 45-58 Link Here
45
45
46
        double enumerator = 0;
46
        double enumerator = 0;
47
        try {
47
        try {
48
            enumerator = OperandResolver.coerceValueToDouble(venumerator);
48
            ValueEval ve = OperandResolver.getSingleValue(venumerator, srcRowIndex, srcColumnIndex);
49
            enumerator = OperandResolver.coerceValueToDouble(ve);
49
        } catch (EvaluationException e) {
50
        } catch (EvaluationException e) {
50
            return ErrorEval.VALUE_INVALID;
51
            return ErrorEval.VALUE_INVALID;
51
        }
52
        }
52
53
53
        double denominator = 0;
54
        double denominator = 0;
54
        try {
55
        try {
55
            denominator = OperandResolver.coerceValueToDouble(vedenominator);
56
            ValueEval ve = OperandResolver.getSingleValue(vedenominator, srcRowIndex, srcColumnIndex);
57
            denominator = OperandResolver.coerceValueToDouble(ve);
56
        } catch (EvaluationException e) {
58
        } catch (EvaluationException e) {
57
            return ErrorEval.VALUE_INVALID;
59
            return ErrorEval.VALUE_INVALID;
58
        }
60
        }

Return to bug 56146