aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFOddFooter.java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2008-08-05 10:22:13 +0000
committerNick Burch <nick@apache.org>2008-08-05 10:22:13 +0000
commite7476735dc742bd5c6e86419572f6c96f98ecae2 (patch)
tree73b8c7fa0fa06bcde9f8852cc7dd1deeb50a3c1f /src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFOddFooter.java
parent9a34ef8fd38cfbecb7615099d9482981c6df8e4a (diff)
downloadpoi-e7476735dc742bd5c6e86419572f6c96f98ecae2.tar.gz
poi-e7476735dc742bd5c6e86419572f6c96f98ecae2.zip
Improve support, tests and documentation for xssf headers and footers
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@682662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFOddFooter.java')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFOddFooter.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFOddFooter.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFOddFooter.java
index 709212ef8d..8e3143b0d1 100644
--- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFOddFooter.java
+++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFOddFooter.java
@@ -32,7 +32,10 @@ public class XSSFOddFooter extends XSSFHeaderFooter implements Footer{
}
public void setText(String text) {
- getHeaderFooter().setOddFooter(text);
+ if(text == null) {
+ getHeaderFooter().unsetOddFooter();
+ } else {
+ getHeaderFooter().setOddFooter(text);
+ }
}
-
}