[haiku-commits] haiku: hrev45235 - src/kits/interface

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 5 Feb 2013 23:20:17 +0100 (CET)

hrev45235 adds 1 changeset to branch 'master'
old head: fdff8a09a183220fdea1df69e08fbd45d1289b7c
new head: 43ee85f69ca063460212f6e357a86d32623056e4
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=43ee85f+%5Efdff8a0

----------------------------------------------------------------------------

43ee85f: BMenuField: fixed broken view color.
  
  * Apparently, I only tested the other case :-)
  * This fixes bug #9433.

                                   [ Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45235
Commit:      43ee85f69ca063460212f6e357a86d32623056e4
URL:         http://cgit.haiku-os.org/haiku/commit/?id=43ee85f
Author:      Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
Date:        Tue Feb  5 22:19:20 2013 UTC

Ticket:      https://dev.haiku-os.org/ticket/9433

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/kits/interface/MenuField.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/kits/interface/MenuField.cpp b/src/kits/interface/MenuField.cpp
index e337e80..676afba 100644
--- a/src/kits/interface/MenuField.cpp
+++ b/src/kits/interface/MenuField.cpp
@@ -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


Other related posts:

  • » [haiku-commits] haiku: hrev45235 - src/kits/interface - axeld