Bug 93675 - FILESAVE: DOCX: Diagram export working but when opened with Word displayed differently than in LO
Summary: FILESAVE: DOCX: Diagram export working but when opened with Word displayed di...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.4.5.2 release
Hardware: All Linux (All)
: low normal
Assignee: Not Assigned
URL:
Whiteboard: target:5.1.0
Keywords: filter:docx
Depends on:
Blocks: Matters-to-Caolan DOCX
  Show dependency treegraph
 
Reported: 2015-08-26 08:35 UTC by Dr. David Alan Gilbert
Modified: 2019-11-26 18:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
document containing diagram (266.32 KB, application/vnd.oasis.opendocument.text-flat-xml)
2015-08-26 08:35 UTC, Dr. David Alan Gilbert
Details
corrupt docx produced from the fodt (15.67 KB, application/download)
2015-08-26 08:35 UTC, Dr. David Alan Gilbert
Details
docx (left) and fodt (right) worksforme (300.92 KB, image/jpeg)
2015-08-27 16:40 UTC, steve -_-
Details
Screenshot showing corruption (332.56 KB, image/jpeg)
2015-08-27 17:52 UTC, Dr. David Alan Gilbert
Details
example of rotated element causing trouble on export (19.15 KB, text/odt)
2015-10-14 16:06 UTC, Caolán McNamara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. David Alan Gilbert 2015-08-26 08:35:19 UTC
Created attachment 118188 [details]
document containing diagram

(This happens on both the 5.0.1.1-1 upstream packages and the 4.4.5.2-1 fedora downstream packages; both x86-64 Linux)

The attached diagram is very heavily oorrupted when exporting as docx (see the docx attachment as well).   Reading the docx file on MS Word also shows a very corrupt result but very different (chunks of text swapped) from LO's attempt.
Comment 1 Dr. David Alan Gilbert 2015-08-26 08:35:58 UTC
Created attachment 118189 [details]
corrupt docx produced from the fodt
Comment 2 steve -_- 2015-08-27 16:40:06 UTC
WORKSFORME with LO Version: 5.1.0.0.alpha1+
Build ID: b2363e98af7b0281279617e43b8fec5b898b9120
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2015-08-25_23:42:33
Locale: de-DE (de.UTF-8)

Screenshot of fodt file and docx (exported to that) both opened with LibreOffice.

The docx file looks indeed different when opened with Word. But that might as well be a glitch in Word.

Please correct me if I did miss anything. I'll also ping another QA team member to look at this.
Comment 3 steve -_- 2015-08-27 16:40:35 UTC
Created attachment 118228 [details]
docx (left) and fodt (right) worksforme
Comment 4 Joel Madero 2015-08-27 16:46:16 UTC
Version is oldest not latest....
Comment 5 Joel Madero 2015-08-27 16:52:37 UTC
Ubuntu 15.04 x64
LibreOffice 4.4.5.2, 5.0.0.5, master (Build ID: b103e7d786f5b7ec6cfe4f53f2ca317f06ceabc5)


Setting as:
NEW
Normal - can prevent high quality work;
Low - fodt is not popular to begin with, then saving that as a docx with a complexish chart . . . not going to impact many users at all.


Would be nice to find out if this ever worked (by testing older versions). If you have time please do so and report back: http://downloadarchive.documentfoundation.org/libreoffice/old/

Thanks for reporting
Comment 6 Dr. David Alan Gilbert 2015-08-27 17:43:12 UTC
(In reply to Joel Madero from comment #5)
> Ubuntu 15.04 x64
> LibreOffice 4.4.5.2, 5.0.0.5, master (Build ID:
> b103e7d786f5b7ec6cfe4f53f2ca317f06ceabc5)
> 
> 
> Setting as:
> NEW
> Normal - can prevent high quality work;
> Low - fodt is not popular to begin with, then saving that as a docx with a
> complexish chart . . . not going to impact many users at all.
> 

The 'fodt' is not part of the problem; it fails in the same way for me  with a normal odt as well; I just tend to save as fodt before posting so I can check to make sure nothing confidential is left in it.
 
> Would be nice to find out if this ever worked (by testing older versions).
> If you have time please do so and report back:
> http://downloadarchive.documentfoundation.org/libreoffice/old/
> 
> Thanks for reporting
Comment 7 Dr. David Alan Gilbert 2015-08-27 17:52:30 UTC
Created attachment 118230 [details]
Screenshot showing corruption

Hi Steve__,
  As you can see from this screenshot on 5.0.1.1 it's well - VERY corrupt (and the same on the 4.x I have).  So if we're lucky someone just fixed in the 5.1.

When you say it looks different in Word, can you describe how?
When I tried it, chunks of the text were swapped around compared to where LO had it.  To my mind the docx has to look 'right' on Word or there isn't much point in exporting to it.

But IMHO this isn't a 'low' - trying to collaborate with other people using Word is unfortunate but necessary for me.

(I'm out for a few days, so might not respond quickly).
Comment 8 Joel Madero 2015-08-27 18:08:05 UTC
A couple points:

This is a low priority bug - yes you use it in this very particular way but I've been using LibreOffice (and a contributor) for years and I can say with full confidence that the vast majority of users don't use it like this (you're using an unpopular feature...these charting type features);

Plus - it's a non-native format (docx);

Lastly, just know that "low" does not mean that a volunteer won't fix it, it's an *objective* criteria as to how impacted our users will be because of the bug. If a *volunteer* thinks this bug is interesting, they will fix it (whether it's highest or lowest or something in between). This could happen tomorrow or it could happen years from now...that's how the project works.

If you absolutely need a fix I suggest considering getting L3 support from a certified developer: https://www.documentfoundation.org/certification/developers/
Comment 9 Commit Notification 2015-09-07 13:13:27 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=54f9576aa43e3d6d687469aa0b2ea56ce0bbaca3

Related: tdf#93675 'new' ms-alike numbering has same problem as old numbering

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:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 10 Commit Notification 2015-09-10 16:47:47 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=afe53855a221a3c767e8eb06adfc3d1090d13bfb

fix crash on rightclicking image in tdf#93675 and pressing esc

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:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 11 Commit Notification 2015-09-15 09:44:27 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=1ed0f437679d702b633e381eaf6f6d6f9aecdd9b

Related: tdf#93675 wrong font used in drawings in exported .docx

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:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 12 Caolán McNamara 2015-10-14 16:06:31 UTC
Created attachment 119612 [details]
example of rotated element causing trouble on export

To cut this problem down here's a single rotated shape from the original which when exported is mangled.
Comment 13 Andras Timar 2016-01-29 16:01:08 UTC
(In reply to Caolán McNamara from comment #12)
> Created attachment 119612 [details]
> example of rotated element causing trouble on export
> 
> To cut this problem down here's a single rotated shape from the original
> which when exported is mangled.

I fixed this one with https://gerrit.libreoffice.org/#/c/21905/
Comment 14 Xisco Faulí 2016-09-15 22:28:56 UTC
Hello,
Is this bug fixed?
If so, could you please close it as RESOLVED FIXED?
Comment 15 Dr. David Alan Gilbert 2016-09-16 16:57:07 UTC
(In reply to Xisco Faulí from comment #14)
> Hello,
> Is this bug fixed?
> If so, could you please close it as RESOLVED FIXED?

Not fixed yet; but it's certainly a heck of a lot better than when I first reported it (thanks!).
We're still missing the orange bar arrows on the right, and the curved arrows on the left are missing (or perhaps the odd arrows on the right are the reamins of them). There's also some odd text placement. (Tested on 5.1.5.2-5.fc24)
Comment 16 QA Administrators 2017-12-10 16:41:22 UTC Comment hidden (obsolete)
Comment 17 Dr. David Alan Gilbert 2017-12-11 12:19:27 UTC
Still partially present in 5.4.3.2 (Build 5.4.3.2-1.fc27 on Linux x86-64 on Fedora 27)

There's three different views of this diagram:
   a) The view LO renders from it's fodt that's fine
   b) The view exported from LO as docx and loaded back into LO
       That's misplaced some lines/boxes (in particular the orange arrow sets and the curvey lines on the left)
   c) Then there's the view Word 10 sees loading the same docx;  the lines are in about the same place as (b) but the text is more corrupt - it looks like the wrong piece of text is in the wrong boxes in some case s- e.g. the 'Data going around bend' is in the box that should be 'a' where as the 'Stuff going this way' is where the 'Data going around bend' is.

So it looks like there's errors in the docx export which are producing things that are wrong consistently between word and LO, and there are other errors that LO and word interpret differently when loaded.
Comment 18 QA Administrators 2018-12-12 03:42:34 UTC Comment hidden (obsolete)
Comment 19 Dr. David Alan Gilbert 2018-12-12 14:47:25 UTC
6.1.2.1 (6.2.1-3.fc29 on Fedora 29) seems about the same as the 5.4 I described this time last year.
Comment 20 Chris Sherlock 2019-11-19 08:53:47 UTC
From what I can see, the only issue now is the border rectangle is slightly too small...
Comment 21 Dr. David Alan Gilbert 2019-11-26 18:52:52 UTC
It's still more broken than that for me; just loading the fodt and resaving as docx and then loading it back; the orange arrows are way off (vertically); as are the curved arrows.
It also looks like a lot of the text is associated with the wrong line/shape - e.g. 'Stuff going this way' is in about the right place for 'Data going around bend' when seen in Word loading the docx; and the 'a' in the box at the top left is replaced by 'Data going around bend' - so it's almost like an offset.

(Libreoffice 6.3.3.2.0+ on fedora 31)