Fix for text runs from PPDrawings (bug 37451), as suggested by Yegor

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2005-11-13 17:01:21 +00:00
parent ab08265082
commit b132e8d562

View File

@ -75,10 +75,16 @@ public class Slide extends Sheet
}
// Build an array, more useful than a vector
_runs = new TextRun[textRuns.size()];
for(int i=0; i<_runs.length; i++) {
_runs = new TextRun[textRuns.size()+_otherRuns.length];
// Grab text from SlideListWithTexts entries
int i=0;
for(i=0; i<textRuns.size(); i++) {
_runs[i] = (TextRun)textRuns.get(i);
}
// Grab text from slide's PPDrawing
for(int k=0; k<_otherRuns.length; i++, k++) {
_runs[i] = _otherRuns[k];
}
}