Bug 144402 - FILESAVE DOCX: some images are duplicated after saving and reopening file
Summary: FILESAVE DOCX: some images are duplicated after saving and reopening file
Status: RESOLVED DUPLICATE of bug 143039
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2021-09-09 10:18 UTC by matei.silviu+buzillalibreoffice
Modified: 2021-09-15 08:03 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file (505.00 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-09-09 10:18 UTC, matei.silviu+buzillalibreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matei.silviu+buzillalibreoffice 2021-09-09 10:18:07 UTC
Created attachment 174921 [details]
sample file

After saving the file, closing it, and then opening it again, the second image inserted in the attached .docx file is duplicated. If I don't delete the duplicated image and repeat the process, another copy of the image appears. So I am forced to delete the duplicated images every time I open the file.
In the original file, three images out of 39 have this behaviour.

Steps to Reproduce:
1. Open the attached file
2. Modify the file
3. Save the file
4. Reload the file

Actual Results:
A duplicated image appears

Expected Results:
Same number of images as before


Reproducible: Always
Comment 1 Timur 2021-09-10 07:52:27 UTC
DOCX is LO created, but that shouldn't be a root of the problem. MSO saves it fine.
No repro 7.0, repro 7.3+. So regression in 7.1.
Comment 2 Timur 2021-09-10 08:18:55 UTC
commit 28edff60383ec64b100b3f9cec31c9e7fad10855
Date:   Fri Mar 12 2021 
    source e79c637f291d552bfe8f32ccfc23300c67f51fcc
    pre db05fd646fce8f41a1056761ccf6bc716cda3b77

author	Michael Stahl <michael.stahl@allotropia.de>	2021-03-10 11:26:07 +0100
committer	Caolán McNamara <caolanm@redhat.com>	2021-03-12 16:14:09 +0100
sw: DOCX export: put fly before fieldmark start into its own run

CC: Michael. Please see.
Comment 3 Timur 2021-09-10 10:40:17 UTC
No need to change anything, enough to run soffice --convert-to docx.
Comment 4 NISZ LibreOffice Team 2021-09-15 08:03:29 UTC
Same commit as bug 143039 and bug 143106

*** This bug has been marked as a duplicate of bug 143039 ***