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:
parent
d479db5589
commit
00529536d2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user