Skip to content

Extend destination canvas when copying image differences - #42

Merged
sdottaka merged 3 commits into
masterfrom
extend-canvas-copy-diff
Oct 18, 2026
Merged

sdottaka merged 3 commits into
masterfrom
extend-canvas-copy-diff

Conversation

@sdottaka

Copy link
Copy Markdown
Member

Expand the destination image as needed and copy the full selected difference. Update scrollbars after copying.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Canvas extension can bypass ghost-line rejection and overwrite pixels in the wrong destination row or column.

1 open issue
What changed in this PR

Updates image-difference copying to populate expanded destination regions and refresh scrollbars afterward.

Changes:

  • Allows copying beyond the destination’s previous bounds.
  • Updates scrollbars after single, all, and three-way difference copies.
File Description
src/​WinIMergeLib/​ImgMergeWindow.hpp Refreshes scrollbars after copying differences.
src/​WinIMergeLib/​ImgMergeBuffer.hpp Allows writes into expanded destination regions.

Review effort: Balanced

Comment thread src/WinIMergeLib/ImgMergeBuffer.hpp Resolved
sdottaka and others added 2 commits October 18, 2026 20:42
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@sdottaka
sdottaka merged commit df0150d into master Oct 18, 2026
1 check passed
@sdottaka
sdottaka deleted the extend-canvas-copy-diff branch October 18, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants