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
This commit is contained in:
Nick Burch 2006-04-21 13:41:56 +00:00
parent 86fa433930
commit 1e1be79c86
1 changed files with 7 additions and 0 deletions

View 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);
}
}
}