[Scummvm-git-logs] scummvm branch-2-1 -> add8a33e398f3ea55758fa19f691b159216870ba
criezy
criezy at scummvm.org
Tue Oct 15 21:39:18 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:
add8a33e39 GUI: Fix crash when clicking and dragging a tab widget
Commit: add8a33e398f3ea55758fa19f691b159216870ba
https://github.com/scummvm/scummvm/commit/add8a33e398f3ea55758fa19f691b159216870ba
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2019-10-15T20:38:43+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 8c136ba..8b8f8fe 100644
--- a/gui/widgets/tab.cpp
+++ b/gui/widgets/tab.cpp
@@ -218,7 +218,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