MORPHGRADIENT fix

This commit is contained in:
Jindra Pet��k
2013-05-04 11:52:06 +02:00
parent 3bd79692ca
commit ea06712781
2 changed files with 4 additions and 4 deletions
@@ -1453,7 +1453,7 @@ public class SWFOutputStream extends OutputStream {
* @throws IOException
*/
public void writeMORPHGRADIENT(MORPHGRADIENT value, int shapeNum) throws IOException {
writeUB(4, value.gradientRecords.length);
writeUI8(value.gradientRecords.length + value.numGradientsExtra);
for (int i = 0; i < value.gradientRecords.length; i++) {
writeMORPHGRADRECORD(value.gradientRecords[i]);
}
@@ -1603,7 +1603,7 @@ public class SWFOutputStream extends OutputStream {
}
public void writeBytesZlib(byte data[]) throws IOException {
DeflaterOutputStream deflater = new DeflaterOutputStream(this,new Deflater(9));
DeflaterOutputStream deflater = new DeflaterOutputStream(this, new Deflater(9));
deflater.write(data);
deflater.finish();
}