mirror of https://github.com/apache/poi.git
PowerPoint OLEShape: extract last version of embedded ole object
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@901215 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fab3c433ef
commit
3f0d9084f8
|
@ -84,12 +84,20 @@ public final class OLEShape extends Picture {
|
|||
|
||||
//persist reference
|
||||
int ref = getExEmbed().getExOleObjAtom().getObjStgDataRef();
|
||||
for (int i = 0; i < ole.length; i++) {
|
||||
if(ole[i].getExOleObjStg().getPersistId() == ref) return ole[i];
|
||||
|
||||
ObjectData data = null;
|
||||
|
||||
for (int i = 0; i < ole.length; i++) {
|
||||
if(ole[i].getExOleObjStg().getPersistId() == ref) {
|
||||
data=ole[i];
|
||||
}
|
||||
}
|
||||
logger.log(POILogger.WARN, "OLE data not found");
|
||||
return null;
|
||||
|
||||
if (data==null) {
|
||||
logger.log(POILogger.WARN, "OLE data not found");
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue