Kaydet (Commit) 609e0583 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

WW8 import: further adjustment to the validation check for PLCF position arrays

üst a88242ee
......@@ -940,15 +940,17 @@ namespace {
{
bool bIsValid = true;
WW8_CP nValue = 0;
//WW8_CP nValue = 0;
for ( sal_Int32 i = 0; i <= nMaxIndex; ++i )
{
if ( pPLCFPosArray[i] != 0 && pPLCFPosArray[i] < nValue )
if ( pPLCFPosArray[i] < 0
&& !( i == nMaxIndex-1 && pPLCFPosArray[i] == -63488 ) // pPLCFPosArray[nMaxIndex-1]==-63488 seems to be allowed
&& !( i == nMaxIndex-1 && pPLCFPosArray[i] == -65536 ) ) // pPLCFPosArray[nMaxIndex-1]==-65536 seems to be allowed
{
bIsValid = false;
break;
}
nValue = pPLCFPosArray[i];
//nValue = pPLCFPosArray[i];
}
return bIsValid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment