Bug 38110 - FILEOPEN docx import of some pictures fail
Summary: FILEOPEN docx import of some pictures fail
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 06:34 UTC by Miklos Vajna
Modified: 2011-06-27 07:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miklos Vajna 2011-06-09 06:34:41 UTC
Here is the test doc:

http://cgit.freedesktop.org/libreoffice/contrib/test-files/tree/writer/pictures/Word%20DocumentOffice%202007%20Format%20Sample6.docx

This opens fine in Writer, but once exported as docx, the resulting document can only be opened in Word (tested with 2007), not Writer. Actually it can be opened, but all pictures seem to be missing.

May be related to the fact that those pictures are inserted "as character", but that's just a guess.

I noticed this while trying to understand how dmapper handles pictures (but it does not block my rtf import yet).

I set version to 3.3.2, but I can reproduce on master as well.

Thanks.
Comment 1 Luboš Luňák 2011-06-24 11:16:12 UTC
Export incorrectly writes out <w:drawing> inside <w:rPr>, because the writting of as-character images is triggered by "aAttrIter.OutAttr( nAktPos );" in MSWordExportBase::OutputTextNode().
Comment 2 Luboš Luňák 2011-06-27 07:21:33 UTC
Fixed in master.