[Scummvm-git-logs] scummvm master -> 06b038a1c15d1486fc3466050391e12d22b5356a
criezy
criezy at scummvm.org
Tue Oct 15 21:37:31 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
06b038a1c1 GUI: Fix crash when clicking and dragging a tab widget
Commit: 06b038a1c15d1486fc3466050391e12d22b5356a
https://github.com/scummvm/scummvm/commit/06b038a1c15d1486fc3466050391e12d22b5356a
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2019-10-15T20:37:28+01:00
Commit Message:
GUI: Fix crash when clicking and dragging a tab widget
Changed paths:
gui/widgets/tab.cpp
diff --git a/gui/widgets/tab.cpp b/gui/widgets/tab.cpp
index 0305b57..d373bc9 100644
--- a/gui/widgets/tab.cpp
+++ b/gui/widgets/tab.cpp
@@ -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;
More information about the Scummvm-git-logs
mailing list