clientData.setRowArray(0, new BigInteger(String.valueOf(ref.getRow())));
clientData.setColumnArray(0, new BigInteger(String.valueOf(ref.getCol())));
- // There is a very odd xmlbeans bug when changing the row
- // arrays which can lead to corrupt pointer
- // This call seems to fix them again... See bug #50795
- vmlShape.getClientDataList().toString();
+ avoidXmlbeansCorruptPointer(vmlShape);
}
}
clientData.setRowArray(0, new BigInteger(String.valueOf(address.getRow())));
clientData.setColumnArray(0, new BigInteger(String.valueOf(address.getColumn())));
- // There is a very odd xmlbeans bug when changing the column
- // arrays which can lead to corrupt pointer
- // This call seems to fix them again... See bug #50795
- _vmlShape.getClientDataList().toString();
+ avoidXmlbeansCorruptPointer(_vmlShape);
}
}
public int hashCode() {
return ((getRow()*17) + getColumn())*31;
}
+
+ private static void avoidXmlbeansCorruptPointer(CTShape vmlShape) {
+ // There is a very odd xmlbeans bug when changing the row
+ // arrays which can lead to corrupt pointer
+ // This call seems to fix them again... See bug #50795
+ vmlShape.getClientDataList().toString();
+ }
}