summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorForLoveOfCats <floc@unpromptedtirade.com>2022-02-01 17:45:31 -0500
committerLinus Groh <mail@linusgroh.de>2022-03-03 22:06:14 +0100
commit1fd16232d30dcd6852d54808ec3fbe7070d46281 (patch)
treeacbbee10fd97d459ae9734bc63a04609c4f73fd7 /Userland
parent20dbbdf90c271a948a7cf809227d9998424b8424 (diff)
downloadserenity-1fd16232d30dcd6852d54808ec3fbe7070d46281.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGUI/Button.cpp2
1 files changed, 1 insertions, 1 deletions
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;