GUI: Fix crash when clicking and dragging a tab widget

This commit is contained in:
Cameron Cawley 2019-10-15 20:37:28 +01:00 committed by Thierry Crozat
parent b8e7f45760
commit 06b038a1c1

View File

@ -221,7 +221,8 @@ void TabWidget::handleMouseDown(int x, int y, int button, int clickCount) {
}
void TabWidget::handleMouseMoved(int x, int y, int button) {
assert(y < _tabHeight);
if (y < 0 || y >= _tabHeight)
return;
if (x < 0)
return;