aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2009-04-18 09:06:16 +0000
committerYegor Kozlov <yegor@apache.org>2009-04-18 09:06:16 +0000
commitdf946963b6595b38c40671b22a97f37f9acfce5e (patch)
tree3fae8ee2c58d2dcb496a8c6cbd88a5383fb4b6b5 /src/java
parent46b06af35a59c1bb1ce4ee91d32106ab124287b0 (diff)
downloadpoi-df946963b6595b38c40671b22a97f37f9acfce5e.tar.gz
poi-df946963b6595b38c40671b22a97f37f9acfce5e.zip
read GutsRecord in in the Sheet(RecordStream rs)
constructor (see bugzilla 46186); always call sheet.setAlternativeExpression in conjuction with sheet.setRowSumsBelow, see bugzilla 46714 and 30714 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@766273 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/hssf/model/Sheet.java4
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/hssf/model/Sheet.java b/src/java/org/apache/poi/hssf/model/Sheet.java
index 8256556420..40a2e1e92d 100644
--- a/src/java/org/apache/poi/hssf/model/Sheet.java
+++ b/src/java/org/apache/poi/hssf/model/Sheet.java
@@ -337,6 +337,10 @@ public final class Sheet implements Model {
{
password = (PasswordRecord) rec;
}
+ else if ( recSid == GutsRecord.sid )
+ {
+ _gutsRecord = (GutsRecord) rec;
+ }
records.add(rec);
}
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
index cf81a85686..64a5bc1909 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
@@ -774,6 +774,8 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet {
(WSBoolRecord) _sheet.findFirstRecordBySid(WSBoolRecord.sid);
record.setRowSumsBelow(b);
+ //setAlternateExpression must be set in conjuction with setRowSumsBelow
+ record.setAlternateExpression(b);
}
/**