Skip to content

Commit

Permalink
fix: semi_hilite status is not correct when the hover index is 0 (the…
Browse files Browse the repository at this point in the history
… first candidate)
  • Loading branch information
fxliang authored Jun 18, 2024
1 parent 8621ed2 commit cc8fd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeaselUI/WeaselPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ bool WeaselPanel::_DrawCandidates(CDCHandle& dc, bool back) {
}
}
// draw semi-hilite background and shadow
if (m_hoverIndex > 0) {
if (m_hoverIndex >= 0) {
rect = m_layout->GetCandidateRect(m_hoverIndex);
IsToRoundStruct rd = m_layout->GetRoundInfo(m_hoverIndex);
if (m_istorepos) {
Expand Down

0 comments on commit cc8fd06

Please sign in to comment.