Bug 152419 - Grouped Objects from DOCX file corrupted when saving, including ODT
Summary: Grouped Objects from DOCX file corrupted when saving, including ODT
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-07 20:59 UTC by AtesComp
Modified: 2023-07-21 03:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample Issue Images (305.24 KB, application/pdf)
2022-12-07 20:59 UTC, AtesComp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AtesComp 2022-12-07 20:59:19 UTC
Created attachment 184044 [details]
Sample Issue Images

I have recently edited some older DOCX files from 2016 and noticed this peculiar issue. I opened the file to edit a few text lines, saved back as DOCX, and exported a PDF. I was surprised to find that every grouped object was corrupted--the shapes were missing and only the text from the shapes remained.

I had a copy so opened both files. The copy loaded ok, but the text size was a bit large in the shapes. I copied the old grouped objects to the new doc deleting the erroneous text from the new doc. I then adjusted the grouped shapes using a variety of means:
1. recreating an entire grouped object with native objects in LibreOffice
2. ungrouping and modifying text, adjusting positioning and size of objects, and regrouping
3. editing text size directly in a grouped object

In all cases, when adjusting the grouped object to its original position I needed to change from anchor "as character" to anchor "to paragraph", change the wrap from "parallel" to "wrap off" (as it would not allow otherwise), change anchor back to "as character", center if needed (as they were generally in there own paragraph), and set the Align Objects to "Top".

I then saved as ODT, DOCX, and exported a PDF.
1. Opening the PDF is a PDF viewer looked ok.
2. Opening and reviewing the DOCX seems ok.
3. Open and reviewing the ODT is missing EVERY OTHER OBJECT! In other words, half the grouped objects are missing--the even entries. Very odd.

The ODT file has a place holder for the grouped objects with the appropriate size, but the object seems to be missing as seen in the "06" image. The attached PDF show the above sequence results:
1. "01" show the original "before edits" sample from a PDF.
2. "02" show an "after initial text edits" sample from the exported PDF.
3. "03" and "04" show the reopened DOCX file issues for the first two grouped items.
4. "05" and "06" show the corrected and reopened ODT file issues for the first two grouped items. "05" is ok. "06" showed the highlighted area of the first missing grouped object.

I cannot create a suitable test document for release at this time.
Comment 1 Dieter 2022-12-21 12:48:57 UTC
(In reply to AtesComp from comment #0)
...
> In all cases, when adjusting the grouped object to its original position I
> needed to change from anchor "as character" to anchor "to paragraph", change
> the wrap from "parallel" to "wrap off" (as it would not allow otherwise),
> change anchor back to "as character", center if needed (as they were
> generally in there own paragraph), and set the Align Objects to "Top".

Could you please attach these file? Without a sample document I don't see any chance to reproduce the problem.
=> NEEDINFO
Comment 2 QA Administrators 2023-06-20 03:13:29 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2023-07-21 03:17:32 UTC
Dear AtesComp,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp