The junit test failed with the original test-file (CDT_Data_Retention-PPT.ppt), so another check was necessary

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1569999 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2014-02-20 00:03:42 +00:00
parent d72bd78c19
commit 49c69f0eed

View File

@ -63,14 +63,14 @@ public final class StyleTextProp9Atom extends RecordAtom {
schemes.add(item); schemes.add(item);
i += item.getRecordLength(); i += item.getRecordLength();
if (i >= data.length) { if (i+4 >= data.length) {
break; break;
} }
int textCfException9 = LittleEndian.getInt(data, i ); int textCfException9 = LittleEndian.getInt(data, i );
i += 4; i += 4;
//TODO analyze textCfException when have some test data //TODO analyze textCfException when have some test data
if (i >= data.length) { if (i+4 >= data.length) {
break; break;
} }
int textSiException = LittleEndian.getInt(data, i ); int textSiException = LittleEndian.getInt(data, i );
@ -79,7 +79,7 @@ public final class StyleTextProp9Atom extends RecordAtom {
if (0 != (textSiException & 0x40)) { if (0 != (textSiException & 0x40)) {
i += 2; //skip fBidi i += 2; //skip fBidi
} }
if (i >= data.length) { if (i+4 >= data.length) {
break; break;
} }
} }