Fixed crash by access to invalid dock parent container in CAutoHideDockContainer::updateSize() function

This commit is contained in:
Uwe Kindler 2022-11-02 07:46:02 +01:00
parent 983afc4d1e
commit 7d79ea2770

View File

@ -223,6 +223,11 @@ CAutoHideDockContainer::CAutoHideDockContainer(CDockWidget* DockWidget, SideBarL
void CAutoHideDockContainer::updateSize()
{
auto dockContainerParent = parentContainer();
if (!dockContainerParent)
{
return;
}
auto rect = dockContainerParent->contentRect();
switch (sideBarLocation())