Style fixes as suggested by Axel.
This commit is contained in:
@@ -593,14 +593,14 @@ BBox::DoLayout()
|
|||||||
|
|
||||||
// layout the child
|
// layout the child
|
||||||
BView* child = _Child();
|
BView* child = _Child();
|
||||||
if (child) {
|
if (child != NULL) {
|
||||||
BRect frame(Bounds());
|
BRect frame(Bounds());
|
||||||
frame.left += fLayoutData->insets.left;
|
frame.left += fLayoutData->insets.left;
|
||||||
frame.top += fLayoutData->insets.top;
|
frame.top += fLayoutData->insets.top;
|
||||||
frame.right -= fLayoutData->insets.right;
|
frame.right -= fLayoutData->insets.right;
|
||||||
frame.bottom -= fLayoutData->insets.bottom;
|
frame.bottom -= fLayoutData->insets.bottom;
|
||||||
|
|
||||||
if (child->Flags() & B_SUPPORTS_LAYOUT)
|
if ((child->Flags() & B_SUPPORTS_LAYOUT) != 0)
|
||||||
BLayoutUtils::AlignInFrame(child, frame);
|
BLayoutUtils::AlignInFrame(child, frame);
|
||||||
else
|
else
|
||||||
child->MoveTo(frame.LeftTop());
|
child->MoveTo(frame.LeftTop());
|
||||||
|
|||||||
Reference in New Issue
Block a user