mirror of https://github.com/apache/poi.git
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:
parent
b04379bc4c
commit
2522a3bc89
|
@ -58,10 +58,16 @@ public class XDDFTitle {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setText(String text) {
|
public void setText(String text) {
|
||||||
if (!title.isSetLayout()) {
|
if (text == null) {
|
||||||
title.addNewLayout();
|
if (title.isSetTx()) {
|
||||||
|
title.unsetTx();
|
||||||
|
}
|
||||||
|
} else{
|
||||||
|
if (!title.isSetLayout()) {
|
||||||
|
title.addNewLayout();
|
||||||
|
}
|
||||||
|
getBody().setText(text);
|
||||||
}
|
}
|
||||||
getBody().setText(text);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOverlay(Boolean overlay) {
|
public void setOverlay(Boolean overlay) {
|
||||||
|
|
Loading…
Reference in New Issue