ASF Bugzilla – Attachment 20236 Details for
Bug 42474
Patches for a couple of bugs in HSLF
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
correct-matching-notes-to-slides.patch
correct-matching-notes-to-slides.patch (text/plain), 1.70 KB, created by
Ivan Todoroski
on 2007-05-21 22:16:29 UTC
(
hide
)
Description:
correct-matching-notes-to-slides.patch
Filename:
MIME Type:
Creator:
Ivan Todoroski
Created:
2007-05-21 22:16:29 UTC
Size:
1.70 KB
patch
obsolete
>Index: C:/Proekti/Europa/work/poi/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java >=================================================================== >--- C:/Proekti/Europa/work/poi/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java (revision 540412) >+++ C:/Proekti/Europa/work/poi/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java (working copy) >@@ -33,6 +33,7 @@ > import org.apache.poi.hslf.record.Document; > import org.apache.poi.hslf.record.DocumentAtom; > import org.apache.poi.hslf.record.FontCollection; >+import org.apache.poi.hslf.record.NotesAtom; > import org.apache.poi.hslf.record.ParentAwareRecord; > import org.apache.poi.hslf.record.PositionDependentRecordContainer; > import org.apache.poi.hslf.record.Record; >@@ -363,12 +364,13 @@ > Record r = getCoreRecordForSAS(notesSets[i]); > > // Ensure it really is a notes record >- if(r != null && r instanceof org.apache.poi.hslf.record.Notes) { >- notesRecordsL.add( (org.apache.poi.hslf.record.Notes)r ); >+ if(r instanceof org.apache.poi.hslf.record.Notes) { >+ org.apache.poi.hslf.record.Notes notesRecord = (org.apache.poi.hslf.record.Notes)r; >+ notesRecordsL.add(notesRecord); > > // Record the match between slide id and these notes >- SlidePersistAtom spa = notesSets[i].getSlidePersistAtom(); >- Integer slideId = new Integer(spa.getSlideIdentifier()); >+ NotesAtom na = notesRecord.getNotesAtom(); >+ Integer slideId = new Integer(na.getSlideID()); > slideIdToNotes.put(slideId, new Integer(i)); > } else { > logger.log(POILogger.ERROR, "A Notes SlideAtomSet at " + i + " said its record was at refID " + notesSets[i].getSlidePersistAtom().getRefID() + ", but that was actually a " + r);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42474
:
20225
|
20226
|
20229
|
20235
| 20236