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:
parent
ab08265082
commit
b132e8d562
@ -75,10 +75,16 @@ public class Slide extends Sheet
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Build an array, more useful than a vector
|
// Build an array, more useful than a vector
|
||||||
_runs = new TextRun[textRuns.size()];
|
_runs = new TextRun[textRuns.size()+_otherRuns.length];
|
||||||
for(int i=0; i<_runs.length; i++) {
|
// Grab text from SlideListWithTexts entries
|
||||||
|
int i=0;
|
||||||
|
for(i=0; i<textRuns.size(); i++) {
|
||||||
_runs[i] = (TextRun)textRuns.get(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];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user