Fix style violations I've commited in r38207 and r38251, the first pointed out by Ingo <- thanks!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38252 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alex Wilson 2010-08-18 22:06:15 +00:00
parent a881dd4a37
commit 1eeda2bd42
2 changed files with 16 additions and 16 deletions

View File

@ -110,20 +110,20 @@ AppearancePrefView::AppearancePrefView(const char* name,
BLayoutBuilder::Group<>(this)
.SetInsets(5, 5, 5, 5)
.AddGrid(5, 5)
.Add(fFont->CreateLabelLayoutItem(), 0, 0)
.Add(fFont->CreateMenuBarLayoutItem(), 1, 0)
.Add(fFontSize->CreateLabelLayoutItem(), 0, 1)
.Add(fFontSize->CreateMenuBarLayoutItem(), 1, 1)
.Add(fColorSchemaField->CreateLabelLayoutItem(), 0, 2)
.Add(fColorSchemaField->CreateMenuBarLayoutItem(), 1, 2)
.Add(fColorField->CreateLabelLayoutItem(), 0, 3)
.Add(fColorField->CreateMenuBarLayoutItem(), 1, 3)
.End()
.AddGlue()
.Add(fColorControl = new BColorControl(BPoint(10, 10),
B_CELLS_32x8, 8.0, "", new BMessage(MSG_COLOR_CHANGED)))
.Add(fWarnOnExit);
.AddGrid(5, 5)
.Add(fFont->CreateLabelLayoutItem(), 0, 0)
.Add(fFont->CreateMenuBarLayoutItem(), 1, 0)
.Add(fFontSize->CreateLabelLayoutItem(), 0, 1)
.Add(fFontSize->CreateMenuBarLayoutItem(), 1, 1)
.Add(fColorSchemaField->CreateLabelLayoutItem(), 0, 2)
.Add(fColorSchemaField->CreateMenuBarLayoutItem(), 1, 2)
.Add(fColorField->CreateLabelLayoutItem(), 0, 3)
.Add(fColorField->CreateMenuBarLayoutItem(), 1, 3)
.End()
.AddGlue()
.Add(fColorControl = new BColorControl(BPoint(10, 10),
B_CELLS_32x8, 8.0, "", new BMessage(MSG_COLOR_CHANGED)))
.Add(fWarnOnExit);
fFont->SetAlignment(B_ALIGN_RIGHT);
fFontSize->SetAlignment(B_ALIGN_RIGHT);

View File

@ -958,8 +958,8 @@ BSplitLayout::_LayoutItem(BLayoutItem* item, ItemLayoutInfo* info)
item->AlignInFrame(info->layoutFrame);
// if the item became visible, we need to update its internal layout
if (visibilityChanged && (fOrientation != B_HORIZONTAL
|| !HasHeightForWidth())) {
if (visibilityChanged &&
(fOrientation != B_HORIZONTAL || !HasHeightForWidth())) {
item->Relayout(true);
}
}