mirror of https://github.com/apache/poi.git
Regression analysis: the additional testing of cloning sheets showed a
possible ArrayIndexOutOfBounds error which we can avoid to make cloning fail a bit less. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1730274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
23be95a474
commit
115b5fa0c6
|
@ -214,9 +214,11 @@ public class HSSFPicture extends HSSFSimpleShape implements Picture {
|
||||||
void afterInsert(HSSFPatriarch patriarch) {
|
void afterInsert(HSSFPatriarch patriarch) {
|
||||||
EscherAggregate agg = patriarch.getBoundAggregate();
|
EscherAggregate agg = patriarch.getBoundAggregate();
|
||||||
agg.associateShapeToObjRecord(getEscherContainer().getChildById(EscherClientDataRecord.RECORD_ID), getObjRecord());
|
agg.associateShapeToObjRecord(getEscherContainer().getChildById(EscherClientDataRecord.RECORD_ID), getObjRecord());
|
||||||
EscherBSERecord bse =
|
if(getPictureIndex() != -1) {
|
||||||
patriarch.getSheet().getWorkbook().getWorkbook().getBSERecord(getPictureIndex());
|
EscherBSERecord bse =
|
||||||
bse.setRef(bse.getRef() + 1);
|
patriarch.getSheet().getWorkbook().getWorkbook().getBSERecord(getPictureIndex());
|
||||||
|
bse.setRef(bse.getRef() + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue