Bug 170427 - FILESAVE DOCX: corrupt document reported by MS Word - related to v:shape
Summary: FILESAVE DOCX: corrupt document reported by MS Word - related to v:shape
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bisected, filter:docx
Depends on: 166335
Blocks: DOCX-Corrupted
  Show dependency treegraph
 
Reported: 2026-01-22 01:25 UTC by Justin L
Modified: 2026-01-23 18:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
forum-mso-en-2543.docx: example document (472.29 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2026-01-22 01:25 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2026-01-22 01:25:11 UTC
Created attachment 205122 [details]
forum-mso-en-2543.docx: example document

When this document is round-tripped by LO, the resulting file is reported as corrupt by MS Word.

Steps to reproduce
-open forum-mso-en-2543.docx in LO and re-save it
-try to open the document in MS Word. It complains.

It actually complained about several things. GluePoint fmla was solved in bug 166335, and there might have been several other related fixes, so using LO 26.8 is basically a necessity for this particular document.

One remaining problem appears to be with a v:shape fallback entry.

A bibisect pointed to commit d379d18666aa42031359ca8eb34b0021960347ae
Author: Miklos Vajna on Wed Jun 18 12:09:15 2014 +0200
    oox: import WPS shape with text as shape with textbox
which drastically changed how shapes were handled. That doesn't help much. It basically just tells us that the problem is related to shape/textframes.

I'm not sure I was successful in identifying a specific problem here. I can 'fix' the document by removing 'position:absolute' from:

<v:shape id="shape_0" stroked="t" o:allowincell="f" style="position:absolute;margin-left:0pt;margin-top:-232.1pt;width:357.65pt;height:216.85pt;mso-wrap-style:none;v-text-anchor:middle;mso-position-vertical:top" wp14:anchorId="2C2E3648" type="_x0000_t75">

However, MS Word doesn't show the picture at all, and I've the removal of position:absolute 'fix' other random problems, so I assume it is just a side-effect.