summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/directfb
diff options
context:
space:
mode:
authorAnders Bakken <anders.bakken@nokia.com>2009-09-14 18:23:09 (GMT)
committerAnders Bakken <anders.bakken@nokia.com>2009-09-15 18:46:10 (GMT)
commitd58494bf7b136c2c41f0fd219038c316f954f76f (patch)
treed02efb47a6ffc4b7251f26c594692faa60171812 /src/plugins/gfxdrivers/directfb
parenta9086411e13a247c30992c4f6ab85620bffba895 (diff)
downloadQt-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/gfxdrivers/directfb')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp3
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;
}