bruno 2003/08/08 06:42:47
Modified:
src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements
Cell.java
Log:
Disabled incorrect detection of formula cells.
Caused an exception on all cells containing a '=' as first character.
Revision Changes Path
1.4 +4 -1
cocoon-2.1/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Cell.java
Index: Cell.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Cell.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Cell.java 14 Jun 2003 00:24:59 -0000 1.3
+++ Cell.java 8 Aug 2003 13:42:47 -0000 1.4
@@ -108,10 +108,13 @@
* @exception IOException
*/
void setContent(final String content) throws IOException {
+ /* This part is plain wrong: in gnumeric a formula cell is a cell lacking
the ValueType attribute
+ Disabled this code until someone implements it correctly.
if (content.charAt(0) == '=') {
//seems like a kludge but this is actually how gnumeric does it
_cell.setCellType(HSSFCell.CELL_TYPE_FORMULA);
}
+ */
if (_cell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC) {
try {
if (_celltype == CellType.CELL_TYPE_FLOAT) {