mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
GUI: Fix crash when clicking and dragging a tab widget
This commit is contained in:
parent
b8e7f45760
commit
06b038a1c1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user