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)
|
if (message == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// TODO: workaround for drags without a bitmap - should not be necessary if
|
if (image == NULL) {
|
||||||
// we move the rectangle dragging into the app_server
|
// TODO: workaround for drags without a bitmap - should not be necessary if
|
||||||
image = new (nothrow) BBitmap(BRect(0, 0, 0, 0), B_RGBA32);
|
// we move the rectangle dragging into the app_server
|
||||||
if (image == NULL)
|
image = new (nothrow) BBitmap(BRect(0, 0, 0, 0), B_RGBA32);
|
||||||
return;
|
if (image == NULL)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (replyTo == NULL)
|
if (replyTo == NULL)
|
||||||
replyTo = this;
|
replyTo = this;
|
||||||
|
|
Loading…
Reference in New Issue