Added a sort of hack which allows BPictureButton not to hang the app. Strangely, dereferencing a NULL pointer hangs the app instead of crashing it

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15793 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-01-02 14:49:27 +00:00
parent a5e82db05a
commit 8e64a82404
1 changed files with 3 additions and 1 deletions

View File

@ -3026,7 +3026,9 @@ BView::EndPicture()
}
}
return NULL;
// TODO: Was NULL. We might revert when there is BPictures support
// in the app-server. For now this allows to avoid hangs with BPictureButtons
return cpicture;
}