Remove chart title when given text is null

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874704 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alain Béarez 2020-03-02 23:57:01 +00:00
parent b04379bc4c
commit 2522a3bc89
1 changed files with 9 additions and 3 deletions

View File

@ -58,10 +58,16 @@ public class XDDFTitle {
}
public void setText(String text) {
if (!title.isSetLayout()) {
title.addNewLayout();
if (text == null) {
if (title.isSetTx()) {
title.unsetTx();
}
} else{
if (!title.isSetLayout()) {
title.addNewLayout();
}
getBody().setText(text);
}
getBody().setText(text);
}
public void setOverlay(Boolean overlay) {