diff --git a/src/kits/interface/MenuField.cpp b/src/kits/interface/MenuField.cpp index cf261ab190..e337e80dd7 100644 --- a/src/kits/interface/MenuField.cpp +++ b/src/kits/interface/MenuField.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2011, Haiku, Inc. + * Copyright 2001-2013, Haiku, Inc. * Distributed under the terms of the MIT License. * * Authors: @@ -408,6 +408,7 @@ void BMenuField::AttachedToWindow() { CALLED(); + rgb_color color; BView* parent = Parent(); if (parent != NULL) { @@ -415,10 +416,11 @@ BMenuField::AttachedToWindow() rgb_color color = parent->ViewColor(); if (color == B_TRANSPARENT_COLOR) color = ui_color(B_PANEL_BACKGROUND_COLOR); + } else + color = ui_color(B_PANEL_BACKGROUND_COLOR); - SetViewColor(color); - SetLowColor(color); - } + SetViewColor(color); + SetLowColor(color); }