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;