mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
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.
This commit is contained in:
parent
20dbbdf90c
commit
1fd16232d3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue