restores the text controls before using SetValue() since this one uses them
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25103 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c2d96d4500
commit
d5b26be18c
@ -76,14 +76,14 @@ BColorControl::_InitData(color_control_layout layout, float size,
|
||||
fFocusedComponent = 0;
|
||||
|
||||
if (archive) {
|
||||
fRedText = (BTextControl*)FindView("_red");
|
||||
fGreenText = (BTextControl*)FindView("_green");
|
||||
fBlueText = (BTextControl*)FindView("_blue");
|
||||
|
||||
int32 value = 0;
|
||||
archive->FindInt32("_val", &value);
|
||||
|
||||
SetValue(value);
|
||||
|
||||
fRedText = (BTextControl*)FindView("_red");
|
||||
fGreenText = (BTextControl*)FindView("_green");
|
||||
fBlueText = (BTextControl*)FindView("_blue");
|
||||
} else {
|
||||
BRect rect(0.0f, 0.0f, 70.0f, 15.0f);
|
||||
float labelWidth = StringWidth("Green:") + 5;
|
||||
|
Loading…
Reference in New Issue
Block a user