FIX: operator priority error

Change-Id: Ie3abc4e2a307b3cfc31cecbf8fb151115dde4021
This commit is contained in:
liz.li 2023-07-07 17:25:11 +08:00 committed by Lane.Wei
parent 85a43216d6
commit 07ee63d940

View file

@ -568,7 +568,7 @@ void IMSlider::draw_colored_band(const ImRect& groove, const ImRect& slideable_r
auto draw_band = [this](const ImU32& clr, const ImRect& band_rc)
{
if (clr == m_is_dark ? BACKGROUND_COLOR_DARK : BACKGROUND_COLOR_LIGHT) {
if (clr == (m_is_dark ? BACKGROUND_COLOR_DARK : BACKGROUND_COLOR_LIGHT)) {
ImRect rc = band_rc;
rc.Min += ImVec2(1, 1) * m_scale;
rc.Max -= ImVec2(1, 1) * m_scale;