]> git.sesse.net Git - kdenlive/commitdiff
Fix small regression to previous fix for treating m_image as pointer.
authorDan Dennedy <dan@dennedy.org>
Mon, 9 Aug 2010 23:24:16 +0000 (23:24 +0000)
committerDan Dennedy <dan@dennedy.org>
Mon, 9 Aug 2010 23:24:16 +0000 (23:24 +0000)
svn path=/trunk/kdenlive/; revision=4697

src/colorpickerwidget.cpp

index 1fb6bfc870c6e61d9804b692ad9aa25314c1535e..9a4eb3aaf815e64a823a696a8a09ddb87401b180 100644 (file)
@@ -241,7 +241,7 @@ QColor ColorPickerWidget::grabColor(const QPoint &p, bool destroyImage)
                 &xcol);
     return QColor::fromRgbF(xcol.red / 65535.0, xcol.green / 65535.0, xcol.blue / 65535.0);
 #else
-    if (!m_image.isNull()) {
+    if (m_image.isNull()) {
         QWidget *desktop = QApplication::desktop();
         QPixmap pm = QPixmap::grabWindow(desktop->winId(), p.x(), p.y(), 1, 1);
         QImage i = pm.toImage();