mirror of https://github.com/apache/poi.git
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:
parent
86fa433930
commit
1e1be79c86
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue