Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17817 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f7a09629e5
commit
de0ca38e5a
@ -305,12 +305,9 @@ BSlider::AttachedToWindow()
|
|||||||
fOffScreenBits->AddChild(fOffScreenView);
|
fOffScreenBits->AddChild(fOffScreenView);
|
||||||
#endif // USE_OFF_SCREEN_VIEW
|
#endif // USE_OFF_SCREEN_VIEW
|
||||||
|
|
||||||
SetValue(Value());
|
|
||||||
|
|
||||||
BView* view = OffscreenView();
|
|
||||||
|
|
||||||
BControl::AttachedToWindow();
|
BControl::AttachedToWindow();
|
||||||
|
|
||||||
|
BView* view = OffscreenView();
|
||||||
if (view) {
|
if (view) {
|
||||||
rgb_color color = ViewColor();
|
rgb_color color = ViewColor();
|
||||||
if (Parent() != NULL)
|
if (Parent() != NULL)
|
||||||
@ -326,6 +323,9 @@ BSlider::AttachedToWindow()
|
|||||||
view->SetLowColor(color);
|
view->SetLowColor(color);
|
||||||
view->UnlockLooper();
|
view->UnlockLooper();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetValue(Value());
|
||||||
|
// makes sure the value is within valid bounds
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user