mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Fixed issue #544 - crash in CDockAreaTabBar::currentTab()
This commit is contained in:
parent
65600a4dcd
commit
7a362b7ee3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user