* typo in Control

* layout the view even in the case of an unarchived one
* this should finally fix #2121


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25106 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-04-22 21:26:10 +00:00
parent cd81456e14
commit 9fdd497614
2 changed files with 3 additions and 3 deletions

View File

@ -132,13 +132,13 @@ BColorControl::_InitData(color_control_layout layout, float size,
fBlueText->TextView()->AllowChar(i); fBlueText->TextView()->AllowChar(i);
fBlueText->TextView()->SetMaxBytes(3); fBlueText->TextView()->SetMaxBytes(3);
_LayoutView();
AddChild(fRedText); AddChild(fRedText);
AddChild(fGreenText); AddChild(fGreenText);
AddChild(fBlueText); AddChild(fBlueText);
} }
_LayoutView();
if (useOffscreen) { if (useOffscreen) {
BRect bounds = fPaletteFrame; BRect bounds = fPaletteFrame;
bounds.InsetBy(-2.0f, -2.0f); bounds.InsetBy(-2.0f, -2.0f);

View File

@ -114,7 +114,7 @@ BControl::Archive(BMessage *archive, bool deep) const
status_t status = BView::Archive(archive, deep); status_t status = BView::Archive(archive, deep);
if (status == B_OK && Message()) if (status == B_OK && Message())
status = archive->AddMessage("_msg", Message ()); status = archive->AddMessage("_msg", Message());
if (status == B_OK && fLabel) if (status == B_OK && fLabel)
status = archive->AddString("_label", fLabel); status = archive->AddString("_label", fLabel);