* despite what the BeBook suggests, using CopyBits() on a non-attached BView

does not drop you into the debugger on R5. Should fix #1598.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22784 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2007-11-01 12:05:56 +00:00
parent 1b6ddd3492
commit acf8b5d11c

View File

@ -3215,16 +3215,19 @@ BView::ClearViewOverlay()
void
BView::CopyBits(BRect src, BRect dst)
{
if (fOwner == NULL)
return;
if (!src.IsValid() || !dst.IsValid())
return;
if (do_owner_check()) {
fOwner->fLink->StartMessage(AS_LAYER_COPY_BITS);
fOwner->fLink->Attach<BRect>(src);
fOwner->fLink->Attach<BRect>(dst);
check_lock();
_FlushIfNotInTransaction();
}
fOwner->fLink->StartMessage(AS_LAYER_COPY_BITS);
fOwner->fLink->Attach<BRect>(src);
fOwner->fLink->Attach<BRect>(dst);
_FlushIfNotInTransaction();
}