aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org')
-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);
}
/**