diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-09-14 18:23:09 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-09-15 18:46:10 (GMT) |
commit | d58494bf7b136c2c41f0fd219038c316f954f76f (patch) | |
tree | d02efb47a6ffc4b7251f26c594692faa60171812 /src/plugins | |
parent | a9086411e13a247c30992c4f6ab85620bffba895 (diff) | |
download | Qt-d58494bf7b136c2c41f0fd219038c316f954f76f.zip Qt-d58494bf7b136c2c41f0fd219038c316f954f76f.tar.gz Qt-d58494bf7b136c2c41f0fd219038c316f954f76f.tar.bz2 |
Fix a bug in surfaceForWidget
I had the logic of the assert wrong with the isAncestorOf call.
Reviewed-by: Donald Carr <donald.carr@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp index ff9f7bd..ccbaf21 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp @@ -411,7 +411,8 @@ IDirectFBSurface *QDirectFBWindowSurface::surfaceForWidget(const QWidget *widget *rect = QRect(widget->mapTo(win, QPoint(0, 0)), widget->size()); } } - Q_ASSERT(win == widget || widget->isAncestorOf(win)); + + Q_ASSERT(win == widget || win->isAncestorOf(widget)); return dfbSurface; } |