Created attachment 120702 [details]
DOCX with an image rotated by 13° and flipped horizontally
In the attachment, the image is rotated by ~13° and flipped (it has OOXML tag a:xfrm with attributes rot="776457" and flipH="1").
The lion should look left and slightly upwards. On import, it's upside down and looks left. It has rotation 167.06°, and if set to 13°, it turns right.
Tested with: Version: 220.127.116.11 (x64)
Build ID: e5f16313668ac592c1bfb310f4390624e3dbfb75
Locale: ru-RU (ru_RU)
Confirmed on 18.104.22.168 Windows and on a current master.
Also, an export from MS Word 2007 to ODF completely loses the image flip and rotation.
Interoperability issue all around, but our OOXML ww8 filter needs the attention.
Forgot to include that a MS Word 2007 export to MS Word 97-2003 binary format .DOC is also mishandled in LO 22.214.171.124 and current master.
Let's focus on DOCX issue.
DOC is another, because for DOCX the rotation/flip is already imported (though incorrectly), while for DOC, it is not.
We need to file a separate bug report for DOC.
A patch is submitted to gerrit:
(In reply to Mike Kaganski from comment #3)
> Let's focus on DOCX issue.
> DOC is another, because for DOCX the rotation/flip is already imported
> (though incorrectly), while for DOC, it is not.
> We need to file a separate bug report for DOC.
Done, see bug 95986
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":
tdf#95970: Don't loose mirroring in SdrTextObj::TRSetBaseGeometry
It will be available in 5.1.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.
Migrating Whiteboard tags to Keywords: (filter:docx)