diff options
-rw-r--r-- | gui/widgets/tab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/widgets/tab.cpp b/gui/widgets/tab.cpp index 0305b57061..d373bc9222 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; |