Skip to content

Commit

Permalink
fix: highlight mark drawing incorrect cause by miss condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Oct 29, 2023
1 parent 48a2487 commit e3f26b1
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 @@ -680,7 +680,7 @@ bool WeaselPanel::_DrawCandidates(CDCHandle &dc, bool back)
comment_text_color = m_color_scheme.comment_text_color;
}
// draw highlight mark
if (!m_style.mark_text.empty() && COLORNOTTRANSPARENT(m_color_scheme.hilited_mark_color))
if (i == m_ctx.cinfo.highlighted && !m_style.mark_text.empty() && COLORNOTTRANSPARENT(m_color_scheme.hilited_mark_color))
{
CRect rc = m_layout->GetHighlightRect();
if(m_istorepos) rc.OffsetRect(0, m_offsetys[m_ctx.cinfo.highlighted]);
Expand Down

0 comments on commit e3f26b1

Please sign in to comment.