Bug 69647

Summary: FORMATTING: DOCX import of text and picture (shape?) (wrap involved?) have wrong spacing between them
Product: LibreOffice Reporter: Adam CloudOn <rattles2013>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: barta, cno, gtimur
Version: 3.4.0 releaseKeywords: regression
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=49229
Whiteboard: BSA preBibisect
i915 platform: i915 features:
Attachments: DOCX containing image and text
Comarison screenshot between LibreOffice and MS Word
Comarison screenshot between LibreOffice and MS Word
ODT file with the same issue

Description Adam CloudOn 2013-09-21 15:56:41 UTC
Created attachment 86261 [details]
DOCX containing image and text

Problem description: 
When LO loads a DOCX that has text and an image, LO shows the image too far from the text (not like in Word).

Steps to reproduce:
1. Load the attached DOCX in LO
2. The image is too far from the text

Current behavior:
LO renders the image too far from the text

Expected behavior:
LO should render the image and text like MS Word
              
Operating System: All
Version: 4.2.0.0.alpha0+ Master
Comment 1 Adam CloudOn 2013-09-21 15:57:25 UTC
Created attachment 86262 [details]
Comarison screenshot between LibreOffice and MS Word
Comment 2 Adam CloudOn 2013-09-21 16:10:36 UTC
Created attachment 86265 [details]
Comarison screenshot between LibreOffice and MS Word
Comment 3 Cor Nouws 2013-09-25 18:12:54 UTC
Was fine in 3.3.4, and not OK in 3.4.0
Comment 4 Cor Nouws 2013-09-25 18:25:00 UTC
Difference visible in the UI, dialog Picture, tab Wrap:

3.3.4 (fine):    Wrap None
3.4.0 (broken):  Wrap Optimal

(these can not be set for the picture
 all I get in the context menu is Wrap > Edit contour )
Comment 5 Ahmad Harthi 2013-09-25 20:29:41 UTC
Hi, this is a layout issue not an import/export bug.

You can check by doing the following:

1. write some text
2. insert an picture and change anchor to "as a character"
3. make the picture on the line with previous text
4. add more text until the picture comes to next line
5. make the paragraph spacing "Proportional: 115%"

You'll find that the picture jumps down by "a lot" much more than 115%, this doesn't happen to text only pictures and maybe objects.
Comment 6 Ahmad Harthi 2013-09-25 20:38:54 UTC
Created attachment 86600 [details]
ODT file with the same issue
Comment 7 tommy27 2014-10-19 19:06:43 UTC
bug still present in LibO 4.3.2.2 and  4.4.0.0.alpha0+
Build ID: 3e2bd1e4022e25b77bcc8eba5e02c1adc57008a1
TinderBox: Win-x86@42, Branch:master, Time: 2014-10-16_01:04:13

tested under Win7x64
Comment 8 Timur 2014-11-03 15:41:51 UTC
Why do shapes that have wrap option loose it on import?
I'd say that's the same problem here and with https://bugs.freedesktop.org/attachment.cgi?id=60704 from Bug 49229.
That case is so common, I think it's for MAB.
Comment 9 Timur 2014-11-03 16:09:19 UTC
Another issue, but interesting title: Bug 78756 - FILEOPEN: DOC importer ignores table's "Wrap Around" property.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.