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