[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sw/source
Oliver-Rainer Wittmann
orw at apache.org
Tue Jun 25 01:07:08 PDT 2013
sw/source/filter/ww8/ww8scan.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 87ed59d2b1261bd2e42c58c9a4663e19b8ec13a9
Author: Oliver-Rainer Wittmann <orw at apache.org>
Date: Tue Jun 25 07:16:46 2013 +0000
WW8 import: adjust validation check for PLCF position arrays
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 010a36d..6db4cf6 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -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;
More information about the Libreoffice-commits
mailing list