You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2014/02/20 01:03:42 UTC

svn commit: r1569999 - /poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java

Author: kiwiwings
Date: Thu Feb 20 00:03:42 2014
New Revision: 1569999

URL: http://svn.apache.org/r1569999
Log:
The junit test failed with the original test-file (CDT_Data_Retention-PPT.ppt), so another check was necessary

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java?rev=1569999&r1=1569998&r2=1569999&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java Thu Feb 20 00:03:42 2014
@@ -63,14 +63,14 @@ public final class StyleTextProp9Atom ex
             schemes.add(item);
             i += item.getRecordLength();
             
-            if (i >= data.length) {
+            if (i+4 >= data.length) {
                 break;
             }
             int textCfException9 = LittleEndian.getInt(data, i );
             i += 4;
             //TODO analyze textCfException when have some test data
             
-            if (i >= data.length) {
+            if (i+4 >= data.length) {
                 break;
             }
             int textSiException = LittleEndian.getInt(data, i );
@@ -79,7 +79,7 @@ public final class StyleTextProp9Atom ex
             if (0 != (textSiException & 0x40)) { 
                 i += 2; //skip fBidi 
             }
-            if (i >= data.length) {
+            if (i+4 >= data.length) {
                 break;
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org