From 00529536d25e09c0893fa263b945b8f4052bb05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 29 Sep 2006 09:00:55 +0000 Subject: [PATCH] Fixed my previous commit - now dragging a bitmap is working again. Thanks Stefano! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18976 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/View.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index 0c58bd498e..2cdfa547a6 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -1331,11 +1331,13 @@ BView::DragMessage(BMessage *message, BBitmap *image, if (message == NULL) return; - // TODO: workaround for drags without a bitmap - should not be necessary if - // we move the rectangle dragging into the app_server - image = new (nothrow) BBitmap(BRect(0, 0, 0, 0), B_RGBA32); - if (image == NULL) - return; + if (image == NULL) { + // TODO: workaround for drags without a bitmap - should not be necessary if + // we move the rectangle dragging into the app_server + image = new (nothrow) BBitmap(BRect(0, 0, 0, 0), B_RGBA32); + if (image == NULL) + return; + } if (replyTo == NULL) replyTo = this;