Skip to content

Commit

Permalink
Fix issue #6: Location pane may not render differences
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Oct 22, 2024
1 parent 6d7cf17 commit 7cdd8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WinWebDiffLib/WebToolWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class CWebToolWindow : public IWebToolWindow, IWebDiffEventHandler
const int diffTop = rcContainer.top + static_cast<int>(m_rects[pane][i].top * scaleY);
const int diffRight = rcContainer.left + static_cast<int>((m_rects[pane][i].left + m_rects[pane][i].width) * scaleX);
const int diffBottom = rcContainer.top + static_cast<int>((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);
}
}
Expand Down

0 comments on commit 7cdd8b8

Please sign in to comment.