Kaydet (Commit) 412d3916 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Miklos Vajna

doc para property ranges cannot be 0 length

Change-Id: If946204873343d8bbc0c1d391ca2c65d8b2f8561
(cherry picked from commit ed7d2204)
Reviewed-on: https://gerrit.libreoffice.org/18299Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 0cd13904
This diff was suppressed by a .gitattributes entry.
......@@ -4383,6 +4383,19 @@ bool WW8PLCFx_AtnBook::getIsEnd() const
// dadurch kein AErger zu erwarten ist.
void WW8PLCFMan::AdjustEnds( WW8PLCFxDesc& rDesc )
{
// might be necessary to do this for pChp and/or pSep as well,
// but its definitely the case for paragraphs that EndPos > StartPos
// for a well formed paragraph as those always have a paragraph
// <cr> in them
if (&rDesc == pPap && rDesc.bRealLineEnd)
{
if (rDesc.nStartPos == rDesc.nEndPos && rDesc.nEndPos != WW8_CP_MAX)
{
SAL_WARN("sw.ww8", "WW8PLCFxDesc End same as Start, abandoning to avoid looping");
rDesc.nEndPos = WW8_CP_MAX;
}
}
//Store old end position for supercool new property finder that uses
//cp instead of fc's as nature intended
rDesc.nOrigEndPos = rDesc.nEndPos;
......
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