You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by ni...@apache.org on 2005/11/13 18:01:21 UTC
cvs commit: jakarta-poi/src/scratchpad/src/org/apache/poi/hslf/model Slide.java
nick 2005/11/13 09:01:21
Modified: src/scratchpad/src/org/apache/poi/hslf/model Slide.java
Log:
Fix for text runs from PPDrawings (bug 37451), as suggested by Yegor
Revision Changes Path
1.3 +8 -2 jakarta-poi/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java
Index: Slide.java
===================================================================
RCS file: /home/cvs/jakarta-poi/src/scratchpad/src/org/apache/poi/hslf/model/Slide.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Slide.java 26 Jun 2005 19:03:48 -0000 1.2
+++ Slide.java 13 Nov 2005 17:01:21 -0000 1.3
@@ -75,10 +75,16 @@
}
// 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];
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/