View | Details | Raw Unified | Return to bug 42474
Collapse All | Expand All

(-)C:/Proekti/Europa/work/poi/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java (-4 / +6 lines)
Lines 33-38 Link Here
33
import org.apache.poi.hslf.record.Document;
33
import org.apache.poi.hslf.record.Document;
34
import org.apache.poi.hslf.record.DocumentAtom;
34
import org.apache.poi.hslf.record.DocumentAtom;
35
import org.apache.poi.hslf.record.FontCollection;
35
import org.apache.poi.hslf.record.FontCollection;
36
import org.apache.poi.hslf.record.NotesAtom;
36
import org.apache.poi.hslf.record.ParentAwareRecord;
37
import org.apache.poi.hslf.record.ParentAwareRecord;
37
import org.apache.poi.hslf.record.PositionDependentRecordContainer;
38
import org.apache.poi.hslf.record.PositionDependentRecordContainer;
38
import org.apache.poi.hslf.record.Record;
39
import org.apache.poi.hslf.record.Record;
Lines 363-374 Link Here
363
			Record r = getCoreRecordForSAS(notesSets[i]);
364
			Record r = getCoreRecordForSAS(notesSets[i]);
364
			
365
			
365
			// Ensure it really is a notes record
366
			// Ensure it really is a notes record
366
			if(r != null && r instanceof org.apache.poi.hslf.record.Notes) {
367
			if(r instanceof org.apache.poi.hslf.record.Notes) {
367
				notesRecordsL.add( (org.apache.poi.hslf.record.Notes)r );
368
				org.apache.poi.hslf.record.Notes notesRecord = (org.apache.poi.hslf.record.Notes)r;
369
				notesRecordsL.add(notesRecord);
368
				
370
				
369
				// Record the match between slide id and these notes
371
				// Record the match between slide id and these notes
370
				SlidePersistAtom spa = notesSets[i].getSlidePersistAtom();
372
				NotesAtom na = notesRecord.getNotesAtom();
371
				Integer slideId = new Integer(spa.getSlideIdentifier());
373
				Integer slideId = new Integer(na.getSlideID());
372
				slideIdToNotes.put(slideId, new Integer(i));
374
				slideIdToNotes.put(slideId, new Integer(i));
373
			} else {
375
			} else {
374
				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);
376
				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);

Return to bug 42474