BMenuField: fixed broken view color.

* Apparently, I only tested the other case :-)
* This fixes bug #9433.
This commit is contained in:
Axel Dörfler 2013-02-05 23:19:20 +01:00
parent fdff8a09a1
commit 43ee85f69c
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ BMenuField::AttachedToWindow()
BView* parent = Parent();
if (parent != NULL) {
// inherit the color from parent
rgb_color color = parent->ViewColor();
color = parent->ViewColor();
if (color == B_TRANSPARENT_COLOR)
color = ui_color(B_PANEL_BACKGROUND_COLOR);
} else