From 1fd16232d30dcd6852d54808ec3fbe7070d46281 Mon Sep 17 00:00:00 2001 From: ForLoveOfCats Date: Tue, 1 Feb 2022 17:45:31 -0500 Subject: [PATCH] LibGUI: Use logical `and` instead of bitwise in `Button` paint call This appears to have been a typo. While it does work it's probably better to be more clear here. --- Userland/Libraries/LibGUI/Button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGUI/Button.cpp b/Userland/Libraries/LibGUI/Button.cpp index ecbd3e8fc3..0eb7ac9042 100644 --- a/Userland/Libraries/LibGUI/Button.cpp +++ b/Userland/Libraries/LibGUI/Button.cpp @@ -57,7 +57,7 @@ void Button::paint_event(PaintEvent& event) bool paint_pressed = is_being_pressed() || (m_menu && m_menu->is_visible()); - Gfx::StylePainter::paint_button(painter, rect(), palette(), m_button_style, paint_pressed, is_hovered(), is_checked(), is_enabled(), is_focused(), is_default() & !another_button_has_focus()); + Gfx::StylePainter::paint_button(painter, rect(), palette(), m_button_style, paint_pressed, is_hovered(), is_checked(), is_enabled(), is_focused(), is_default() && !another_button_has_focus()); if (text().is_empty() && !m_icon) return;