Open attachment 129385 [details] from bug 104486. The three shapes in the first page have the same position, but should not.
This error was reported in bug 143455, but is unrelated to that bug.
I see the wrong position, but have not found the reason yet.
This is connected with commit
author Regina Henschel <email@example.com> 2021-05-15 23:40:34 +0200
committer Miklos Vajna <firstname.lastname@example.org> 2021-06-28 09:49:00 +0200
commit 3262fc5ef3bde5b158909d11ccb008161ea95519 (patch)
parent 2ffdd37067926ddb841c6055205f267b96706945 (diff)
tdf#142304 a.o. Improve wrap margins in docx filters
Moving to NEW
Created attachment 173771 [details]
The example document in Word and Writer
Version: 22.214.171.124.alpha0+ (x64) / LibreOffice Community
Build ID: 0d4cbdbc9cd4ab06056cec66cffd292b41615b6e
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
The problem is, that that the group is in a lockedCanvas element. I could add a test to skip adaption of position for such shapes. That would give the same positions as in 7.1.
But I hesitate to do so, because in all versions saving the document gives a file, which has lost the groups. So I think, that there is a deeper problem with lockedCanvas and a fix might be needed at a different place.
Created attachment 173889 [details]
There is a deeper problem already in import. The import should create a group instead of the lockedCanvas element. But it imports only one shape.
Open the attachment in Word. You see a rounded rectangle and triangle.
Open the attachment in LO, e.g. in version 6.4.5. You get only the triangle and the triangle has wrong size.
"lockedCanvas" is a special feature of Word 2007, read discussion in thread https://lists.freedesktop.org/archives/libreoffice/2021-July/087658.html.
Using a newer version of Word and saving without "keep compatibility" results in a file, which LO can read and save without problems.
Created attachment 173939 [details]
lockedCanvas example, containing a small image and a straight line
As requested at https://email@example.com
@Miklos: Thank you. The attached file shows indeed the problem, which I have suspected from reading the code: LibreOffice does neither show the image nor the line.
I'm working on a patch to improve import of lockedCanvas.
Regina Henschel committed a patch related to this issue.
It has been pushed to "master":
tdf#143476 improve import of lockedCanvas
It will be available in 7.3.0.
The patch should be included in the daily builds available at
https://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.
Created attachment 174171 [details]
lockedCanvas example, containing an object
In contrast to what I wrote at https://lists.freedesktop.org/archives/libreoffice/2021-August/087718.html, if both an object and a shape is selected and copied from powerpoint to word in MSO 2007, then it's possible to have ole objects in a locked canvas. I attach a sample.
Created attachment 174172 [details]
lockedCanvas example, containing a table
Table case: this looks non-interesting, the table is converted to a PNG
Created attachment 174173 [details]
lockedCanvas example, containing a chart
Finally a chart sample. Again, need to copy a chart and a shape together to Word, that creates the chart inside the locked canvas.
Miklos, thank you for the examples. The OLE equation import is good, but the chart is lost. Considering that it is a very special case, I think fixing it has low priority. Nevertheless I have written bug 143808 for it.