CTPt thisPoint) {
CTTextBody textBody = thisPoint.getT();
if (textBody!=null) {
TextBody tb = getDataHierarchyObjectFactory().createTextBody();
thisListItem.setTextBody(tb);
for(CTTextParagraph p : textBody.getP() ) {
if (!p.getEGTextRun().isEmpty()
&& p.getEGTextRun().get(0) instanceof org.docx4j.dml.CTRegularTextRun
) {
// TODO; assumes a single r child, which is
// all we handle. ie this model doesn't support
// multiple runs, some of which formatted
org.docx4j.dml.CTRegularTextRun run = (org.docx4j.dml.CTRegularTextRun)p.getEGTextRun().get(0);
tb.getP().add( run.getT() );
}
}
}
return textBody;