tdf#166713 Fix crash in lcl_FoldedOutlineNodeEndOfParaSplit
by handling the case of a paragraph outline level set by direct formatting. Change-Id: Ida0c8f91f0fb0584b39c16b3ddf2201429c6943f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191471 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
This commit is contained in:
@@ -1396,6 +1396,10 @@ static bool lcl_FoldedOutlineNodeEndOfParaSplit(SwWrtShell *pThis)
|
||||
|
||||
SwTextNode* pNd = pDoc->GetNodes().MakeTextNode(*pEndNd, pTextNode->GetTextColl(), true);
|
||||
|
||||
// if the outline level is not set in style then it is set in direct formatting
|
||||
if (!pTextNode->GetTextColl()->GetAttrOutlineLevel())
|
||||
pNd->SetAttrOutlineLevel(pTextNode->GetAttrOutlineLevel());
|
||||
|
||||
(void) rOutlineNodes.Seek_Entry(pNd, &nPos);
|
||||
pThis->GotoOutline(nPos);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user