Created attachment 93242 [details]
A screenshot with LO 4.3.0 19dec2013
Figures in docx, which contain text, become rectangles in LibreOffice. I create two bugreports: one for figures on canvas and other for figures which are NOT on canvas, because for the case with canvas is reproducible only on some 4.3.0alpha0 builds. I am not sure about the word “canvas”, because I have only localized version of MS Word. Please, correct me if it is not correct word.
This bugreport is about the case WITH canvas.
How to reproduce:
1. Create new document in MS Word 2010 (I don't try other versions)
2. Add new canvas (Insert->figure->new canvas)
3 Create new figure, for example, ellipse (Insert → Figure). Make sure that the figure is on the canvas
4 Right click on figure, add text
5 Save the file in docx format.
6 Open the file in LibreOffice writer
You see a rectangle instead of the figure.
In bug 74397 attachment 93238 [details] top line of figures demonstrate the bug
I tried different versions of LibreOffice. Figures have normal shape in versions 126.96.36.199, 188.8.131.52, 184.108.40.206.alpha0+ Build ID: fdc1b1fc174da27e3016370fdb603d6bbe49af4d TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2013-12-26_10:00:24
Figures become rectangles in
Build ID: 602c87b4259d118e5db6d8a990c4695103f916dd
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-01-18_00:02:21
Build ID: 599b3c91dc5bd9c04e70b38246acac9914a6b219
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-02-01_23:39:30
Created attachment 93243 [details]
A screenshot with LO 4.3.0 18jan2014
Mmh, looks very related to bug 70942... looks like there was a patch committed on 13 January 2014.
Thank you, Jorendc, for noticing me the bug 70942. That bug is about shapes without canvas, so another my report (bug 74397) is a duplicate. It seems I should improve my searching skills.
(In reply to comment #0)
> This bugreport is about the case WITH canvas.
> How to reproduce:
> 1. Create new document in MS Word 2010 (I don't try other versions)
please attach a test case for those who don't have MS Word 2010
Tommy, the test document is attachment 93238 [details] for bug 74397. Top line of figures in this document is on canvas.
Created attachment 94155 [details]
screenshot 4.2 vs 4.3
(In reply to comment #5)
> Tommy, the test document is attachment 93238 [details] for bug 74397. Top
> line of figures in this document is on canvas.
confirmed. that is nasty. I add a comparative screenshot between 4.2 and 4.3
Created attachment 96009 [details]
screenshot from Word 2007 of test document previously shown in LO 220.127.116.11 and master
A screenshot from Word 2007 of the https://bugs.freedesktop.org/attachment.cgi?id=93238 test document. Notice that even 4.2.x OOXML import is mishandling the shapes.
This is a regression from 75934fc178ed90b56d77eb1efebed5bdac8427b6:
Author: Miklos Vajna <email@example.com>
Date: Fri Jan 17 17:25:08 2014 +0100
VML import: handle shape with text inside groupshape as TextShape
This matches the behavior of the WW8 import and gives us the required
text wrapping when the shape text doesn't fit in a single line.
I'll take care of this.
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":
fdo#74401 VML groupshape import: only handle v:rect as TextShape
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.
Regression was master-only, no backport.
The bug is not reproducible with LibreOffice Writer 18.104.22.168.alpha0+ Build ID: 926435ef5ab26e647c09887d471bde25b24e1c16 TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-03-22_00:09:10
Miklos, could you also handle rounded rectangles as textshapes? They were not affected by this bug (see shape 2 “Smooth angle rectangle” in the screenshots)