Kaydet (Commit) eef36faf authored tarafından Michael Stahl's avatar Michael Stahl

sw: convert checks about mbInfTab and cell parent to assert()

Change-Id: Ia9e517936d546f60f76ae99062ff57a09209dc8a
Reviewed-on: https://gerrit.libreoffice.org/50805Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 054be085
......@@ -750,7 +750,7 @@ SwFrame *SwFrame::FindNext_()
SwLayoutFrame *pUp = pThis->GetUpper();
while (pUp && !pUp->IsCellFrame())
pUp = pUp->GetUpper();
SAL_WARN_IF(!pUp, "sw.core", "Content in table but not in cell.");
assert(pUp && "Content flag says it's in table but it's not in cell.");
SwFrame* pNxt = pUp ? static_cast<SwCellFrame*>(pUp)->GetFollowCell() : nullptr;
if ( pNxt )
pNxt = static_cast<SwCellFrame*>(pNxt)->ContainsContent();
......@@ -1108,7 +1108,7 @@ SwFrame *SwFrame::FindPrev_()
SwLayoutFrame *pUp = pThis->GetUpper();
while (pUp && !pUp->IsCellFrame())
pUp = pUp->GetUpper();
SAL_WARN_IF(!pUp, "sw.core", "Content in table but not in cell.");
assert(pUp && "Content flag says it's in table but it's not in cell.");
if (pUp && pUp->IsAnLower(pPrvCnt))
return pPrvCnt;
}
......
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