Created attachment 106967 [details] additional explanation and various DOCX examples Problem description: When DRAWING CANVAS is used in MS Office for drawing shapes and textboxes, LibreOffice does not correctly open MS Office DOCX file. Steps to reproduce: 1. Insert Drawing canvas in MS Office (Insert -> Shapes -> Drawing Canvas) and create some lines and textboxes on it (type some text so it fits in at least two lines)... or alternatively, download some drawing examples from attachment in this bud. 2. Save it as DOCX. 3. Open it in LibreOffice. Current behavior: Textboxes didn't keep their size and text wrapping option is disabled. Position is however kept. Expected behavior: Textboxes should keep their size and text wrapping option enabled. Operating System: All Version: 4.3.2.2 release
Confirmed: Ubuntu 14.04 x64 running E17 LibreOffice 4.3.0 release (at least this old - confirmed with bibisect, so not a minor release regression). Updating version as version is the oldest version that the problem shows itself. Bibsected + regression ce81582766413e76a63c047bfd6227ab12fcd866 is the first bad commit commit ce81582766413e76a63c047bfd6227ab12fcd866 Author: Bjoern Michaelsen <bjoern.michaelsen@canonical.com> Date: Mon May 12 01:37:21 2014 +0000 source-hash-3d1b1eea83703919c43620f9adef05e5b24c4bed commit 3d1b1eea83703919c43620f9adef05e5b24c4bed Author: Caolán McNamara <caolanm@redhat.com> AuthorDate: Wed Mar 19 12:27:07 2014 +0000 Commit: Caolán McNamara <caolanm@redhat.com> CommitDate: Wed Mar 19 15:37:56 2014 +0000 coverity#735757 Unchecked dynamic_cast Change-Id: I268b9c4df81598f68b8da2c258d70c2118b69d82 :100644 100644 55e483c4a724436ee0e792f72b90a3d301c77064 46da6ac1f330f20bd0a4ebebe27910e2c0e49e49 M ccache.log :100644 100644 109c99441737bb49205950d8d26f994ab7ade8ca 88c019e4e1f3e2591ad255a84ebb468863e18b3f M commitmsg :100644 100644 489b61544cecbe2b2fc066ce04098712be6374d8 80fe30beee6868b7ef681d3d1040c51b252661ea M make.log :040000 040000 8d40ab0ff1362b98fa7646afb94a246acb54cd98 fe475bf82129a0a85c90230737d704d41ab77938 M opt # bad: [423a84c4f7068853974887d98442bc2a2d0cc91b] source-hash-c15927f20d4727c3b8de68497b6949e72f9e6e9e # good: [65fd30f5cb4cdd37995a33420ed8273c0a29bf00] source-hash-d6cde02dbce8c28c6af836e2dc1120f8a6ef9932 git bisect start 'latest' 'oldest' # good: [e02439a3d6297a1f5334fa558ddec5ef4212c574] source-hash-6b8393474974d2af7a2cb3c47b3d5c081b550bdb git bisect good e02439a3d6297a1f5334fa558ddec5ef4212c574 # good: [4850941efe43ae800be5c76e1102ab80ac2c085d] source-hash-980a6e552502f02f12c15bfb1c9f8e6269499f4b git bisect good 4850941efe43ae800be5c76e1102ab80ac2c085d # good: [a900e72b6357882284c5955bdf939bf14269f5fb] source-hash-dd1050b182260a26a1d0ba6d0ef3a6fecc3f4e07 git bisect good a900e72b6357882284c5955bdf939bf14269f5fb # skip: [e80660c5a1d812cd04586dae1f22767fc3778c4a] source-hash-07c60c8ee2d1465544a6a39e57bc06b3690b8dfb git bisect skip e80660c5a1d812cd04586dae1f22767fc3778c4a # bad: [df9bcaed2faa2a8d11b19f877cdff3a12a887278] source-hash-6ba9692d8bbe3e3c245aca9a7c928e81178d05f1 git bisect bad df9bcaed2faa2a8d11b19f877cdff3a12a887278 # bad: [9d57c189d74551d2b3770cc81139ea10a62e672f] source-hash-5b5e62650354788e50b44f32c22b687b2018aba9 git bisect bad 9d57c189d74551d2b3770cc81139ea10a62e672f # bad: [ce81582766413e76a63c047bfd6227ab12fcd866] source-hash-3d1b1eea83703919c43620f9adef05e5b24c4bed git bisect bad ce81582766413e76a63c047bfd6227ab12fcd866 # good: [4e0843c411a14e3065f96f196eeb4d603664f97f] source-hash-51605bf98220d7e54dee20af17c33cebe23a0813 git bisect good 4e0843c411a14e3065f96f196eeb4d603664f97f # good: [bfba063779a12bca219e4a9fba9bba8b67821ec1] source-hash-86a32589e90ee983159fb5b2c6a594428ab7d422 git bisect good bfba063779a12bca219e4a9fba9bba8b67821ec1 # good: [db29eee512d03b1dc0139b3752bbe7931b165377] source-hash-77b6c1602aaa0bd059077765e7fabb53d9e6ddeb git bisect good db29eee512d03b1dc0139b3752bbe7931b165377 # good: [e34eadbaf87d8e71ebd9cf34e6acc628ad0b4650] source-hash-7b56d303300fbf592473b28b654fd22fec110962 git bisect good e34eadbaf87d8e71ebd9cf34e6acc628ad0b4650 # first bad commit: [ce81582766413e76a63c047bfd6227ab12fcd866] source-hash-3d1b1eea83703919c43620f9adef05e5b24c4bed
There 22 writer commits in range b56d303300fbf592473b28b654fd22fec110962..3d1b1eea83703919c43620f9adef05e5b24c4bed, of which: commit 81f9fe3a14f0fc99afbfa7ce3a26a9c7855d0919 Author: Miklos Vajna <vmiklos@collabora.co.uk> Date: Wed Mar 19 09:59:32 2014 +0100 fdo#74401 VML groupshape import: only handle v:rect as TextShape Regression from commit 75934fc178ed90b56d77eb1efebed5bdac8427b6 (VML import: handle shape with text inside groupshape as TextShape, 2014-01-17), the problem was that TextShape is also a kind of rectangle, so that shouldn't be used for all shape with text in groupshapes, just for v:rect elements. This fix gives the required text wrapping for the referenced bugdoc without turning the rest of the shapes into rectangles. Change-Id: I6e343c65a869e335b641728adbc7984ee85377b5 looks kind of suspicious.
(This is an automated message.) It seems that the commit that caused this regression was identified. (Or at least a commit is suspected as the offending one.) Thus setting keyword "bisected".
Migrating Whiteboard tags to Keywords: (bibisected filter:docx) [NinjaEdit]
Adding Cc: to Miklos Vajna
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Drawings that were created on Canvas in Microsoft Word 2007 still cannot be opened correctly. Tested with version 6.0.5.2.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/198685ded79d64b21023ee85e9a15fa1b32705a0 tdf#84399 VML import: map <v:shape o:spt="202"> to TextShape It will be available in 7.0.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: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Verified in Version: 7.0.0.0.alpha0+ Build ID: c57d6d39c80844c9d4c6bfed85cc151e52a67b34 CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; Locale: en-US (en_US.UTF-8); UI-Language: en-US Calc: threaded it fixes *all* the layout problems in *all* the files attached. Niceeee!! @Miklos, thanks for fixing this issue!!
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-6-4": https://git.libreoffice.org/core/commit/7d210f5c9bf7db39f0043d8d218b337b9a78053d tdf#84399 VML import: map <v:shape o:spt="202"> to TextShape It will be available in 6.4.3. 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: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 104384 has been marked as a duplicate of this bug. ***
*** Bug 101931 has been marked as a duplicate of this bug. ***
@Timur, I found I couple of regressions 198685ded79d64b21023ee85e9a15fa1b32705a0 fixed. Maybe you are able to find some more...
*** Bug 109128 has been marked as a duplicate of this bug. ***
*** Bug 129700 has been marked as a duplicate of this bug. ***