From e3f26b129893b2731d7b045906368de8d6a0dc24 Mon Sep 17 00:00:00 2001 From: fxliang Date: Sun, 29 Oct 2023 22:21:04 +0800 Subject: [PATCH] fix: highlight mark drawing incorrect cause by miss condition. --- WeaselUI/WeaselPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeaselUI/WeaselPanel.cpp b/WeaselUI/WeaselPanel.cpp index da801a26d..6b08ce50a 100644 --- a/WeaselUI/WeaselPanel.cpp +++ b/WeaselUI/WeaselPanel.cpp @@ -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]);