diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-27 19:38:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-28 21:20:29 +0100 |
commit | 268a82d43425534761ef243d9204bfe4f4d3abc6 (patch) | |
tree | f975f609740d316bbf90a04b86779d56dc0d484c | |
parent | d3895d7efd62576ce29132e823f3fdbdeb2e10ee (diff) |
crashtesting: crash on loading ooo71160-2.doc
since:
commit 2d6addb180ad30383f4aaec198c22ccbf936fa87
CommitDate: Mon Oct 21 15:16:57 2024 +0200
tdf#163486 sw: PVS: identical sub-expressions
Change-Id: I601a72a8a39f3591d1110f65a027e89923befaca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175702
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sw/source/core/layout/objectformattertxtfrm.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index 2c0ea38aae43..0d55a90ac8b4 100644 --- a/sw/source/core/layout/objectformattertxtfrm.cxx +++ b/sw/source/core/layout/objectformattertxtfrm.cxx @@ -575,6 +575,8 @@ SwAnchoredObject* SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor( static SwRowFrame const* FindTopLevelRowFrame(SwFrame const*const pFrame) { SwRowFrame * pRow = const_cast<SwFrame*>(pFrame)->FindRowFrame(); + if (!pRow) + return nullptr; // looks like SwTabFrame has mbInfTab = true so go up 2 levels while (pRow->GetUpper()->GetUpper()->IsInTab()) { |