diff --git a/src/scratchpad/src/org/apache/poi/hslf/model/Sheet.java b/src/scratchpad/src/org/apache/poi/hslf/model/Sheet.java index 35353e9c88..3342089879 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/model/Sheet.java +++ b/src/scratchpad/src/org/apache/poi/hslf/model/Sheet.java @@ -192,5 +192,12 @@ public abstract class Sheet shape.setSheet(this); shape.afterInsert(this); + + // If it's a TextBox, we need to tell the PPDrawing, as it has to + // track TextboxWrappers specially + if(shape instanceof TextBox) { + TextBox tbox = (TextBox)shape; + ppdrawing.addTextboxWrapper(tbox._txtbox); + } } }