summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/content.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-12-02 15:49:02 +0100
committerMichael Stahl <mstahl@redhat.com>2016-12-07 14:46:07 +0100
commit69062c3255f136d13444e1a48a3a4126444a317f (patch)
tree99e132296a9512a65c1d34564b027dccc8582fba /sw/source/uibase/utlui/content.cxx
parent025f1c8d53b5f89777b016c48f8dad4e38294efc (diff)
SwContentTree: another wrong assert
Change-Id: Ie00f89275662d46cf8434b71f0a3c4b5425a18e2
Diffstat (limited to 'sw/source/uibase/utlui/content.cxx')
-rw-r--r--sw/source/uibase/utlui/content.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 56cd41514024..dd3d33919217 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1320,7 +1320,7 @@ void SwContentTree::RequestingChildren( SvTreeListEntry* pParent )
else
{
pChild = Prev(pChild);
- assert(!pChild || dynamic_cast<SwOutlineContent*>(static_cast<SwTypeNumber*>(pChild->GetUserData())));
+ assert(!pChild || lcl_IsContentType(pChild) || dynamic_cast<SwOutlineContent*>(static_cast<SwTypeNumber*>(pChild->GetUserData())));
while(pChild &&
lcl_IsContent(pChild) &&
!(static_cast<SwOutlineContent*>(pChild->GetUserData())->GetOutlineLevel() < nLevel)