Fixed issue #544 - crash in CDockAreaTabBar::currentTab()

This commit is contained in:
Uwe Kindler 2023-08-03 15:57:57 +02:00
parent 65600a4dcd
commit 7a362b7ee3

View File

@ -300,7 +300,7 @@ int CDockAreaTabBar::currentIndex() const
//===========================================================================
CDockWidgetTab* CDockAreaTabBar::currentTab() const
{
if (d->CurrentIndex < 0)
if (d->CurrentIndex < 0 || d->CurrentIndex >= d->TabsLayout->count())
{
return nullptr;
}