You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by or...@apache.org on 2013/06/25 09:16:46 UTC

svn commit: r1496364 - /openoffice/trunk/main/sw/source/filter/ww8/ww8scan.cxx

Author: orw
Date: Tue Jun 25 07:16:46 2013
New Revision: 1496364

URL: http://svn.apache.org/r1496364
Log:
WW8 import: adjust validation check for PLCF position arrays

Modified:
    openoffice/trunk/main/sw/source/filter/ww8/ww8scan.cxx

Modified: openoffice/trunk/main/sw/source/filter/ww8/ww8scan.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/filter/ww8/ww8scan.cxx?rev=1496364&r1=1496363&r2=1496364&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/filter/ww8/ww8scan.cxx (original)
+++ openoffice/trunk/main/sw/source/filter/ww8/ww8scan.cxx Tue Jun 25 07:16:46 2013
@@ -943,7 +943,7 @@ namespace {
         WW8_CP nValue = 0;
         for ( sal_Int32 i = 0; i <= nMaxIndex; ++i )
         {
-            if ( pPLCFPosArray[i] < nValue )
+            if ( pPLCFPosArray[i] != 0 && pPLCFPosArray[i] < nValue )
             {
                 bIsValid = false;
                 break;