Kaydet (Commit) a2b90cd0 authored tarafından Caolán McNamara's avatar Caolán McNamara

don't hang on busted subdocument offsets

Change-Id: I5d1d18f864496ec98894703f0a22e211a9dd14a5
üst 951dbdd1
This diff was suppressed by a .gitattributes entry.
...@@ -4409,11 +4409,15 @@ void WW8PLCFxDesc::ReduceByOffset() ...@@ -4409,11 +4409,15 @@ void WW8PLCFxDesc::ReduceByOffset()
else else
nStartPos -= nCpOfs; nStartPos -= nCpOfs;
} }
if( nEndPos != WW8_CP_MAX ) if (nEndPos != WW8_CP_MAX)
{ {
OSL_ENSURE(nCpOfs <= nEndPos, if (nCpOfs > nEndPos)
"oh oh, so much for the subdocument piece theory"); {
nEndPos -= nCpOfs; SAL_WARN("sw.ww8", "broken subdocument piece entry");
nEndPos = WW8_CP_MAX;
}
else
nEndPos -= nCpOfs;
} }
} }
......
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