From 7cdd8b8d306e240cc0dcc8d893bc2167fe32a9f8 Mon Sep 17 00:00:00 2001 From: sdottaka Date: Tue, 22 Oct 2024 21:10:45 +0900 Subject: [PATCH] Fix issue #6: Location pane may not render differences --- src/WinWebDiffLib/WebToolWindow.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WinWebDiffLib/WebToolWindow.hpp b/src/WinWebDiffLib/WebToolWindow.hpp index f0f93aa..fe4ab19 100644 --- a/src/WinWebDiffLib/WebToolWindow.hpp +++ b/src/WinWebDiffLib/WebToolWindow.hpp @@ -484,7 +484,7 @@ class CWebToolWindow : public IWebToolWindow, IWebDiffEventHandler const int diffTop = rcContainer.top + static_cast(m_rects[pane][i].top * scaleY); const int diffRight = rcContainer.left + static_cast((m_rects[pane][i].left + m_rects[pane][i].width) * scaleX); const int diffBottom = rcContainer.top + static_cast((m_rects[pane][i].top + m_rects[pane][i].height) * scaleY); - const RECT rc = { diffLeft, diffTop, diffRight, diffBottom }; + const RECT rc = { diffLeft, diffTop, diffRight, (diffBottom == diffTop) ? diffBottom + 1 : diffBottom }; FillSolidRect(hdcMem, rc, (curDiff == m_rects[pane][i].id) ? colors.clrSelDiff : colors.clrDiff); } }