Kaydet (Commit) 5062ffbf authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1437954 Dereference null return value

turn DBG_ASSERT into a real assert

since...

commit 904c97bb
Date:   Mon Jul 2 17:23:59 2018 +0200

    move SvTreeList::*Sibling to SvTreeListEntry

    since they don't depend on SvTreeList at all

Change-Id: Ib230ff2fc9ab1f68c6686c125dbf4213e77bea84
Reviewed-on: https://gerrit.libreoffice.org/57457
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c7911e7d
......@@ -1075,7 +1075,7 @@ void SvImpLBox::DrawNet(vcl::RenderContext& rRenderContext)
aPos1.AdjustY(nEntryHeightDIV2 );
pChild = pView->FirstChild( pEntry );
DBG_ASSERT(pChild,"Child?");
assert(pChild && "Child?");
pChild = pChild->LastSibling();
nDistance = static_cast<sal_uInt16>(pView->GetVisiblePos(pChild) - pView->GetVisiblePos(pEntry));
aPos2 = aPos1;
......
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