poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acoli...@apache.org
Subject cvs commit: jakarta-poi/src/java/org/apache/poi/hssf/record FormulaRecord.java
Date Thu, 28 Nov 2002 18:57:35 GMT
acoliver    2002/11/28 10:57:35

  Modified:    src/java/org/apache/poi/hssf/record FormulaRecord.java
  Log:
  patch from Dennis Doubleday http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13076
  
  Revision  Changes    Path
  1.17      +14 -11    jakarta-poi/src/java/org/apache/poi/hssf/record/FormulaRecord.java
  
  Index: FormulaRecord.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/FormulaRecord.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- FormulaRecord.java	20 Oct 2002 06:16:34 -0000	1.16
  +++ FormulaRecord.java	28 Nov 2002 18:57:35 -0000	1.17
  @@ -545,20 +545,23 @@
                   .append("\n");
               buffer.append("    .expressionlength= ").append(getExpressionLength())
                   .append("\n");
  -            buffer.append("    .numptgsinarray  = ").append(field_8_parsed_expr.size())
  -                .append("\n");
  +
  +            if (field_8_parsed_expr != null) {
  +                buffer.append("    .numptgsinarray  = ").append(field_8_parsed_expr.size())
  +                    .append("\n");
               
               
  -            for (int k = 0; k < field_8_parsed_expr.size(); k++ ) {
  +                for (int k = 0; k < field_8_parsed_expr.size(); k++ ) {
   /*                buffer.append("formula ").append(k).append(" ")
  -               .append(((Ptg)field_8_parsed_expr.get(k)).toFormulaString());*/
  -                buffer.append("Formula ")
  -                .append(k)
  -                .append("=")
  -                .append(field_8_parsed_expr.get(k).toString())
  -                .append("\n")
  -                .append(((Ptg)field_8_parsed_expr.get(k)).toDebugString())
  -                .append("\n");                
  +                  .append(((Ptg)field_8_parsed_expr.get(k)).toFormulaString());*/
  +                    buffer.append("Formula ")
  +                        .append(k)
  +                        .append("=")
  +                        .append(field_8_parsed_expr.get(k).toString())
  +                        .append("\n")
  +                        .append(((Ptg)field_8_parsed_expr.get(k)).toDebugString())
  +                        .append("\n");
  +                }
               }
               
               
  
  
  

Mime
View raw message