]> source.dussan.org Git - poi.git/commitdiff
When adding TextBoxes to a slide, make sure we update the PPDrawing's cache of Textbo...
authorNick Burch <nick@apache.org>
Fri, 21 Apr 2006 13:41:56 +0000 (13:41 +0000)
committerNick Burch <nick@apache.org>
Fri, 21 Apr 2006 13:41:56 +0000 (13:41 +0000)
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

index 35353e9c8856f180499482dbfe12eb5d4ca2eacb..3342089879d500b05a3eafc7d13255164f2a4c43 100644 (file)
@@ -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);
+       }
   }
 }