Style fixes as suggested by Axel.

This commit is contained in:
Adrien Destugues
2016-01-24 17:04:06 +01:00
parent be1537b41a
commit f9fe8e12c3
+2 -2
View File
@@ -593,14 +593,14 @@ BBox::DoLayout()
// layout the child
BView* child = _Child();
if (child) {
if (child != NULL) {
BRect frame(Bounds());
frame.left += fLayoutData->insets.left;
frame.top += fLayoutData->insets.top;
frame.right -= fLayoutData->insets.right;
frame.bottom -= fLayoutData->insets.bottom;
if (child->Flags() & B_SUPPORTS_LAYOUT)
if ((child->Flags() & B_SUPPORTS_LAYOUT) != 0)
BLayoutUtils::AlignInFrame(child, frame);
else
child->MoveTo(frame.LeftTop());