diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-01-14 16:29:52 +0000 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-01-15 12:31:34 +0100 |
commit | 874963258379f4bf9d392cef5662eecad568eabf (patch) | |
tree | db785a3e12cc9f8c39088e80413492fdb7adeb6c | |
parent | cec7ae9f3c69ecc83462f28fc4987e37dc1b420e (diff) |
crashtesting: assert on import of ooo96040-1.odt
#0 std::__uniq_ptr_impl<sw::MergedPara, std::default_delete<sw::MergedPara> >::_M_ptr (this=0x108)
at include/c++/8.2.0/bits/unique_ptr.h:150
#1 0x00007f759b5ef71e in std::unique_ptr<sw::MergedPara, std::default_delete<sw::MergedPara> >::get (this=0x108)
at include/c++/8.2.0/bits/unique_ptr.h:343
#2 0x00007f759b870d00 in SwTextFrame::GetMergedPara (this=0x0) at sw/source/core/inc/txtfrm.hxx:437
#3 0x00007f759be822f9 in sw::GetAttrMerged (rFormatSet=SfxItemSet of pool 0x4aae540 with parent 0x0 and Which ranges: [(68, 68), (90, 91)] = {...},
rNode=..., pLayout=0x4b6f490) at sw/source/core/text/txtfrm.cxx:378
#4 0x00007f759bf47a53 in SwTextNode::GetParaAttr (this=0x51bf980,
rSet=SfxItemSet of pool 0x4aae540 with parent 0x0 and Which ranges: [(68, 68), (90, 91)] = {...}, nStt=0, nEnd=0, bOnlyTextAttr=false,
bGetFromChrFormat=true, bMergeIndentValuesOfNumRule=true, pLayout=0x4b6f490)
at sw/source/core/txtnode/thints.cxx:2072
#5 0x00007f759baea5cc in SwEditShell::GetPaMAttr (this=0x50e7050, pPaM=0x4b42e38,
rSet=SfxItemSet of pool 0x4aae540 with parent 0x0 and Which ranges: [(68, 68), (90, 91)] = {...}, bMergeIndentValuesOfNumRule=true)
at sw/source/core/edit/edattr.cxx:144
#6 0x00007f759baea772 in SwEditShell::GetCurAttr (this=0x50e7050,
rSet=SfxItemSet of pool 0x4aae540 with parent 0x0 and Which ranges: [(68, 68), (90, 91)] = {...}, bMergeIndentValuesOfNumRule=true)
at sw/source/core/edit/edattr.cxx:184
#7 0x00007f759c733449 in SwView::StateTabWin (this=0x4e28f10,
rSet=SfxItemSet of pool 0x4aae540 with parent 0x0 and Which ranges: [(10082, 10082), (10084, 10084), (10415, 10415)] = {...})
at sw/source/uibase/uiview/viewtab.cxx:1234
#8 0x00007f759c6f8c83 in SfxStubSwViewStateTabWin (pShell=0x4e28f10,
rSet=SfxItemSet of pool 0x4aae540 with parent 0x0 and Which ranges: [(10082, 10082), (10084, 10084), (10415, 10415)] = {...})
at workdir/SdiTarget/sw/sdi/swslots.hxx:13525
Change-Id: I126a043ad3dc274da629a9a4efe349eafd85b485
Reviewed-on: https://gerrit.libreoffice.org/66326
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 286bb465a516..4e610dff40fc 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -374,8 +374,8 @@ namespace sw { rNode.SwContentNode::GetAttr(rFormatSet); if (pLayout && pLayout->IsHideRedlines()) { - if (sw::MergedPara const*const pMerged = - static_cast<SwTextFrame*>(rNode.getLayoutFrame(pLayout))->GetMergedPara()) + auto pFrame = static_cast<SwTextFrame*>(rNode.getLayoutFrame(pLayout)); + if (sw::MergedPara const*const pMerged = pFrame ? pFrame->GetMergedPara() : nullptr) { if (pMerged->pFirstNode != &rNode) { |