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:
Jim Raykowski
2025-09-25 06:11:56 +02:00
parent 4ba94c18b2
commit fd9ae53e39
+4
View File
@@ -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);