print also the view name in case it mixes up flags and resizing mode.
Helps identifying it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23910 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3412,7 +3412,6 @@ BView::_AddChild(BView *child, BView *before)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (child->fParent != NULL) {
|
if (child->fParent != NULL) {
|
||||||
printf("BView::_AddChild(): child %p already has parent %p\n", child , child->fParent);
|
|
||||||
debugger("AddChild failed - the view already has a parent.");
|
debugger("AddChild failed - the view already has a parent.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -4196,7 +4195,7 @@ BView::_InitData(BRect frame, const char *name, uint32 resizingMode, uint32 flag
|
|||||||
|
|
||||||
// initialize members
|
// initialize members
|
||||||
if ((resizingMode & ~_RESIZE_MASK_) || (flags & _RESIZE_MASK_))
|
if ((resizingMode & ~_RESIZE_MASK_) || (flags & _RESIZE_MASK_))
|
||||||
printf("BView::InitData(): resizing mode or flags swapped\n");
|
printf("%s BView::InitData(): resizing mode or flags swapped\n", name);
|
||||||
|
|
||||||
// There are applications that swap the resize mask and the flags in the
|
// There are applications that swap the resize mask and the flags in the
|
||||||
// BView constructor. This does not cause problems under BeOS as it just
|
// BView constructor. This does not cause problems under BeOS as it just
|
||||||
|
|||||||
Reference in New Issue
Block a user