From 1e1be79c86ff792cd9a7b643882cb080146cb303 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Fri, 21 Apr 2006 13:41:56 +0000 Subject: [PATCH] When adding TextBoxes to a slide, make sure we update the PPDrawing's cache of TextboxWrappers git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@395879 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hslf/model/Sheet.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); + } } } -- 2.39.5