BMenuField: fixed broken view color.
* Apparently, I only tested the other case :-) * This fixes bug #9433.
This commit is contained in:
@@ -413,7 +413,7 @@ BMenuField::AttachedToWindow()
|
|||||||
BView* parent = Parent();
|
BView* parent = Parent();
|
||||||
if (parent != NULL) {
|
if (parent != NULL) {
|
||||||
// inherit the color from parent
|
// inherit the color from parent
|
||||||
rgb_color color = parent->ViewColor();
|
color = parent->ViewColor();
|
||||||
if (color == B_TRANSPARENT_COLOR)
|
if (color == B_TRANSPARENT_COLOR)
|
||||||
color = ui_color(B_PANEL_BACKGROUND_COLOR);
|
color = ui_color(B_PANEL_BACKGROUND_COLOR);
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user