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

clip text to skip to max text available

Change-Id: I5c5c033954d5b6f869a05f19f312f9330df74efb
üst 18e4f434
This diff was suppressed by a .gitattributes entry.
......@@ -3783,8 +3783,9 @@ long SwWW8ImplReader::ReadTextAttr(WW8_CP& rTextPos, long nTextEnd, bool& rbStar
(aRes.nSprmId == eFLD) || (aRes.nSprmId == eAND)
)
{
WW8_CP nMaxLegalSkip = nTextEnd - rTextPos;
// Skip Field/Footnote-/End-Note here
rTextPos += nSkipChars;
rTextPos += std::min<WW8_CP>(nSkipChars, nMaxLegalSkip);
nSkipPos = rTextPos-1;
}
}
......
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