summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew C. Oliver <acoliver@apache.org>2007-03-02 02:53:06 +0000
committerAndrew C. Oliver <acoliver@apache.org>2007-03-02 02:53:06 +0000
commit71e5ccf8e2c8eb115f0a4ec2e7bc5fa3b89e5cb6 (patch)
tree703633e14f929b7dd1b393b80b505c9c408642c7
parent3c9d557f30585ee896e026dbd3a97151687fc06e (diff)
downloadpoi-71e5ccf8e2c8eb115f0a4ec2e7bc5fa3b89e5cb6.tar.gz
poi-71e5ccf8e2c8eb115f0a4ec2e7bc5fa3b89e5cb6.zip
Allow user defined named ranges. Calling super doesn't seem to break anything and throwing the
exception prevents writing rationale files with user defined named ranges... Open to discussion if anyone knows why we're being so fickle here... git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@513604 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java b/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java
index 8dfb0a758e..9507e37a8e 100644
--- a/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java
+++ b/src/java/org/apache/poi/hssf/record/formula/AreaNPtg.java
@@ -51,7 +51,10 @@ public class AreaNPtg
}
public void writeBytes(byte [] array, int offset) {
- throw new RuntimeException("Coding Error: This method should never be called. This ptg should be converted");
+ super.writeBytes(array,offset);
+ //this should be a warning...there doesn't seem to be any rationale to throwing an exception here...
+ //this excpeiton appears to break user defined named ranges...
+ //throw new RuntimeException("Coding Error: This method should never be called. This ptg should be converted");
}
public String getAreaPtgName() {