Kaydet (Commit) 63d1aa4d authored tarafından sushil_shinde's avatar sushil_shinde Kaydeden (comit) Miklos Vajna

fdo#78885 : File crashed while opening in LO

  - File attached to issue contains footnote between a table and reference
    of footnote is in field.
  - In PopFieldContext code was throwing exception due to null value of
    footnotestartnode.

Reviewed on:
	https://gerrit.libreoffice.org/9697

Change-Id: I467e234a7daa6a5f724087c2cc959e4c9d76f4d2
üst e19670ac
......@@ -1552,7 +1552,7 @@ void DomainMapper_Impl::PushFootOrEndnote( bool bIsFootnote )
}
appendTextContent( uno::Reference< text::XTextContent >( xFootnoteText, uno::UNO_QUERY_THROW ), aFontProperties );
m_aTextAppendStack.push(TextAppendContext(uno::Reference< text::XTextAppend >( xFootnoteText, uno::UNO_QUERY_THROW ),
m_bIsNewDoc ? uno::Reference<text::XTextCursor>() : xFootnoteText->createTextCursorByRange(xFootnoteText->getStart())));
xFootnoteText->createTextCursorByRange(xFootnoteText->getStart())));
// Redlines for the footnote anchor
CheckRedline( xFootnote->getAnchor( ) );
......
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