This is a follow-up to bug 99273. Original report was about the following attachment not being able to be saved (as DOCX):
File can now be saved (fix will be in 5.2.3 / 5.1.6), but the file is truncated: the first page is missing.
In the last major version that could open and save this doc (4.3), only the first page is shown and saved, but the arrangement looks a bit better there.
This commit caused the DOCX not being able to be saved anymore:
"oox: import WPS shape with text as shape with textbox
This allows having real shapes (like having rounded corners) and complex
content (like containing a table) at the same time.
WPS shapes are wrappers around drawingML markup in DOCX files, so this
only affects the DOCX import."
This commit made saving possible again:
"crashtesting: assert on export of tdf99571-1.docx to docx"
Setting to NEW based on bug 99273.
With actual sources of the LO, the problem (the file is truncated: the first page is missing.) is not reproducible for https://bugs.documentfoundation.org/attachment.cgi?id=124308 test file.
In any case a new unit test should be added.
Serge Krot committed a patch related to this issue.
It has been pushed to "master":
tdf#102466 Added unit test: ensure 1st page is not missing
It will be available in 6.0.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
* Added new unit test - ensure 1st page is not missing - DECLARE_OOXMLEXPORT_TEST(testTdf102466, "tdf102466.docx").