Skip to content

Commit 7cdd8b8

Browse files
committed
Fix issue #6: Location pane may not render differences
1 parent 6d7cf17 commit 7cdd8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WinWebDiffLib/WebToolWindow.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ class CWebToolWindow : public IWebToolWindow, IWebDiffEventHandler
484484
const int diffTop = rcContainer.top + static_cast<int>(m_rects[pane][i].top * scaleY);
485485
const int diffRight = rcContainer.left + static_cast<int>((m_rects[pane][i].left + m_rects[pane][i].width) * scaleX);
486486
const int diffBottom = rcContainer.top + static_cast<int>((m_rects[pane][i].top + m_rects[pane][i].height) * scaleY);
487-
const RECT rc = { diffLeft, diffTop, diffRight, diffBottom };
487+
const RECT rc = { diffLeft, diffTop, diffRight, (diffBottom == diffTop) ? diffBottom + 1 : diffBottom };
488488
FillSolidRect(hdcMem, rc, (curDiff == m_rects[pane][i].id) ? colors.clrSelDiff : colors.clrDiff);
489489
}
490490
}

0 commit comments

Comments
 (0)