Skip to content

Commit 5769f90

Browse files
committed
[SUTK] Parent Container must be a ScrollContainer if a container derives from Scrollable
1 parent ef27ce9 commit 5769f90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sutk/source/Scrollable.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ namespace SUTK
77
Scrollable::Scrollable(Container* container) noexcept
88
{
99
m_scrollContainer = dynamic_cast<ScrollContainer*>(container->getParent());
10+
_COM_ASSERT(m_scrollContainer);
1011
}
1112
}

0 commit comments

Comments
 (0)