Skip to content

Commit

Permalink
fix #1392
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyqus committed Sep 22, 2024
1 parent 97c974c commit 6765a19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ooxml/XWPF/Usermodel/XWPFFootnotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ public XWPFDocument GetXWPFDocument()
}
else
{
return (XWPFDocument)GetParent();
var parent = GetParent();
while(parent!=null && parent is not XWPFDocument)
{
parent=parent.GetParent();
}
return parent as XWPFDocument;
}
}

Expand Down

0 comments on commit 6765a19

Please sign in to comment.