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

(-)src/java/org/apache/poi/hssf/usermodel/HSSFCell.java (-1 / +3 lines)
Lines 706-712 Link Here
706
            FormulaRecordAggregate rec = (FormulaRecordAggregate) record;
706
            FormulaRecordAggregate rec = (FormulaRecordAggregate) record;
707
            rec.getFormulaRecord().setOptions(( short ) 2);
707
            rec.getFormulaRecord().setOptions(( short ) 2);
708
            rec.getFormulaRecord().setValue(0);
708
            rec.getFormulaRecord().setValue(0);
709
            rec.setXFIndex(( short ) 0x0f);
709
            
710
            //only set to default if there is no extended format index already set
711
            if (rec.getXFIndex() == (short)0) rec.setXFIndex(( short ) 0x0f);
710
            FormulaParser fp = new FormulaParser(formula+";",book);
712
            FormulaParser fp = new FormulaParser(formula+";",book);
711
            fp.parse();
713
            fp.parse();
712
            Ptg[] ptg  = fp.getRPNPtg();
714
            Ptg[] ptg  = fp.getRPNPtg();

Return to bug 15324