sw: convert that to assert too

Change-Id: I4f06fc4871cbb92b40d950b31a06b5e185aed321
Reviewed-on: https://gerrit.libreoffice.org/50806
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
This commit is contained in:
Michael Stahl
2018-03-06 14:07:37 +01:00
parent 7cfb3d2873
commit 1eda4a770a
+1 -1
View File
@@ -1749,7 +1749,7 @@ SwLayoutFrame *SwFrame::GetNextSctLeaf( MakePageType eMakePage )
pNxt = static_cast<SwSectionFrame*>(pTmp);
else
{
OSL_ENSURE( pTmp->IsTabFrame(), "GetNextSctLeaf: Wrong Type" );
assert(pTmp->IsTabFrame());
pNxt = static_cast<SwTabFrame*>(pTmp);
}
while( !pNxtContent && nullptr != ( pTmp = pTmp->GetNext() ) )