Resolves tdf#112101 crash on particular file with office:event-listeners
Change-Id: I99a007543f90f4024666d296e9a775f8cee15086 Reviewed-on: https://gerrit.libreoffice.org/41723 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
BIN
sw/qa/core/data/odt/pass/tdf112101.odt
Normal file
BIN
sw/qa/core/data/odt/pass/tdf112101.odt
Normal file
Binary file not shown.
@@ -427,7 +427,7 @@ XMLImpHyperlinkContext_Impl::XMLImpHyperlinkContext_Impl(
|
|||||||
|
|
||||||
XMLImpHyperlinkContext_Impl::~XMLImpHyperlinkContext_Impl()
|
XMLImpHyperlinkContext_Impl::~XMLImpHyperlinkContext_Impl()
|
||||||
{
|
{
|
||||||
if( mpHint != nullptr )
|
if (mpHint)
|
||||||
mpHint->SetEnd( GetImport().GetTextImport()
|
mpHint->SetEnd( GetImport().GetTextImport()
|
||||||
->GetCursorAsRange()->getStart() );
|
->GetCursorAsRange()->getStart() );
|
||||||
}
|
}
|
||||||
@@ -441,7 +441,8 @@ SvXMLImportContext *XMLImpHyperlinkContext_Impl::CreateChildContext(
|
|||||||
{
|
{
|
||||||
XMLEventsImportContext* pCtxt = new XMLEventsImportContext(
|
XMLEventsImportContext* pCtxt = new XMLEventsImportContext(
|
||||||
GetImport(), nPrefix, rLocalName);
|
GetImport(), nPrefix, rLocalName);
|
||||||
mpHint->SetEventsContext(pCtxt);
|
if (mpHint)
|
||||||
|
mpHint->SetEventsContext(pCtxt);
|
||||||
return pCtxt;
|
return pCtxt;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user