acoliver    2002/09/11 05:14:28

  Modified:    src/documentation/xdocs who.xml
               src/java/org/apache/poi/hssf/usermodel HSSFCell.java
  Log:
  jason height added to who we are page, patch from e. pugh:
  http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=3004
  
  Revision  Changes    Path
  1.16      +1 -0      jakarta-poi/src/documentation/xdocs/who.xml
  
  Index: who.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/documentation/xdocs/who.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- who.xml   15 Aug 2002 14:13:34 -0000      1.15
  +++ who.xml   11 Sep 2002 12:14:28 -0000      1.16
  @@ -52,6 +52,7 @@
     <section title="Developers">
       <ul>
         <li>Shawn Laubach (shawnlaubach at cox dot net)</li>
  +      <li>Jason Height (jheight at chariot dot net dot au)</li>
       </ul>
     </section>
    </section>
  
  
  
  1.18      +9 -6      jakarta-poi/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java
  
  Index: HSSFCell.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- HSSFCell.java     21 Aug 2002 11:56:49 -0000      1.17
  +++ HSSFCell.java     11 Sep 2002 12:14:28 -0000      1.18
  @@ -719,16 +719,16 @@
               //Workbook.currentBook = null;
           }
       }
  -    
  +
       public String getCellFormula() {
           //Workbook.currentBook=book;
           SheetReferences refs = book.getSheetReferences();
           String retval = FormulaParser.toFormulaString(refs, 
((FormulaRecordAggregate)record).getFormulaRecord().getParsedExpression());
           //Workbook.currentBook=null;
  -        return retval;   
  +        return retval;
       }
  -    
  -    
  +
  +
       /**
        * get the value of the cell as a number.  For strings we throw an exception.
        * For blank cells we return a 0.
  @@ -954,7 +954,7 @@
       {
           return record;
       }
  - 
  +
       /**
        * @throws RuntimeException if the bounds are exceeded.
        */
  @@ -962,6 +962,9 @@
         if (cellNum > 255) {
             throw new RuntimeException("You cannot have more than 255 columns "+
                       "in a given row (IV).  Because Excel can't handle it");
  -      }  
  +      }
  +      else if (cellNum < 0) {
  +          throw new RuntimeException("You cannot reference columns with an index of 
less then 0.");
  +      }
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to