Skip to content

SD-2974 - Bug: image resizing in suggesting mode duplicates the image#3238

Open
chittolinag wants to merge 2 commits into
mainfrom
gabriel/sd-2974-bug-image-resizing-in-suggesting-mode-duplicates-the-image
Open

SD-2974 - Bug: image resizing in suggesting mode duplicates the image#3238
chittolinag wants to merge 2 commits into
mainfrom
gabriel/sd-2974-bug-image-resizing-in-suggesting-mode-duplicates-the-image

Conversation

@chittolinag
Copy link
Copy Markdown
Contributor

@chittolinag chittolinag commented May 11, 2026

Issue

Images resized in suggesting mode creates a duplicate.

Proposed solution

Since MS Word does not track changes when the image is resized, the simplest way to fix the issue is by simply ignoring track changes on the event of an image resize.

Just for future reference, the original issue happens around here.

This replaceRange call adds the new (resized) image but keeps the old one. If we ever want to show the old and new image (and show the tracked change for resized) images, we might have to fix this.

Created a behavior test that ensures this doesn't happen in the future (tested both before & after the fix).

@chittolinag chittolinag requested a review from a team as a code owner May 11, 2026 19:47
@linear
Copy link
Copy Markdown

linear Bot commented May 11, 2026

SD-2974

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants