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
This commit is contained in:
Axel Dörfler 2006-09-29 09:00:55 +00:00
parent d479db5589
commit 00529536d2
1 changed files with 7 additions and 5 deletions

View File

@ -1331,11 +1331,13 @@ BView::DragMessage(BMessage *message, BBitmap *image,
if (message == 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;