diff options
author | Eugene Sandulenko | 2016-07-12 22:42:18 +0200 |
---|---|---|
committer | GitHub | 2016-07-12 22:42:18 +0200 |
commit | 3359abbe5fa9486ce45e7183b93a2c010f5457df (patch) | |
tree | 5dcdeebe903ec79a8bcd1f73148f027a1e616374 /gui/widget.cpp | |
parent | a9b7b40c66ecc428d4c23d08e201ee00b659d181 (diff) | |
parent | 64a79fd1ab4270ed50ef62cf0a795c842eb4d72a (diff) | |
download | scummvm-rg350-3359abbe5fa9486ce45e7183b93a2c010f5457df.tar.gz scummvm-rg350-3359abbe5fa9486ce45e7183b93a2c010f5457df.tar.bz2 scummvm-rg350-3359abbe5fa9486ce45e7183b93a2c010f5457df.zip |
Merge pull request #784 from Tkachov/tabwidget-height-fix
GUI: Fix TabWidget height issues
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r-- | gui/widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index 32ca0223c5..f2a29c3100 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -156,7 +156,7 @@ void Widget::draw() { Widget *Widget::findWidgetInChain(Widget *w, int x, int y) { while (w) { // Stop as soon as we find a widget that contains the point (x,y) - if (x >= w->_x && x < w->_x + w->_w && y >= w->_y && y < w->_y + w->_h) + if (x >= w->_x && x < w->_x + w->_w && y >= w->_y && y < w->_y + w->getHeight()) break; w = w->_next; } |