sw: fix crash in OutMarkdown_SwTableNode

Seen in https://crashreport.libreoffice.org/stats/signature/static%20void%20%60anonymous%20namespace'::OutMarkdown_SwTableNode(class%20SwMDWriter%20&%20const,%20const%20class%20SwTableNode%20&%20const)

Change-Id: Id7478428fc8d88fcaf5afc862748f051e5a81e28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208543
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2026-07-24 17:32:40 +02:00
parent f9fac37352
commit f8f97fd53e
+2
View File
@@ -946,6 +946,8 @@ void OutMarkdown_SwTableNode(SwMDWriter& rWrt, const SwTableNode& rTableNode)
{
const SwTableBox* pBox = pLine->GetTabBoxes()[nBox];
const SwStartNode* pStart = pBox->GetSttNd();
if (!pStart)
continue;
SwNodeOffset nCellStartIndex = pStart->GetIndex() + 1;
SwMDCellInfo& rStartInfo = aTableInfo.aCellInfos[nCellStartIndex];
const SwEndNode* pEnd = pStart->EndOfSectionNode();