Bug 75154 - FILEOPEN: DOC Wrong positioning of text alongside text boxes
Summary: FILEOPEN: DOC Wrong positioning of text alongside text boxes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: interoperability ww8
Keywords: filter:doc
Depends on:
Blocks: DOC-Frames DOC-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2014-02-18 12:02 UTC by mloc
Modified: 2022-07-26 07:02 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
.DOC example mentioned (22.50 KB, application/msword)
2014-02-18 12:02 UTC, mloc
Details
Document displayed in MS-Word 2003 (42.76 KB, image/png)
2014-02-18 12:04 UTC, mloc
Details
Document displayed in LibreOffice Writer 4.2.0.4 (55.76 KB, image/png)
2014-02-18 12:12 UTC, mloc
Details
textbox_cancelsIndent.doc: extreme example of anchored object cancelling left indent (24.50 KB, application/msword)
2017-09-05 22:55 UTC, Justin L
Details
textbox_cancelsIndent.pdf: MS Word 2016 upon opening the file. (4.24 KB, application/pdf)
2020-07-25 11:18 UTC, Justin L
Details
textbox_cancelsIndent_compat11.docx: also true with DOCX in compatibility mode. (14.36 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-07-25 11:23 UTC, Justin L
Details
textbox_cancelsIndent_compat15.docx: MSOffice 2016 saved in native mode. (15.06 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-07-25 11:26 UTC, Justin L
Details
textbox_cancelsIndent_compat15.pdf: How MS Word 2016 looks opening the file. (5.92 KB, application/pdf)
2020-07-25 11:28 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mloc 2014-02-18 12:02:49 UTC
Created attachment 94279 [details]
.DOC example mentioned

Popular use of "text boxes" and empirical manipulations to position text in MS-Word lead to a "satisfactory" but inconsistent document LibreOffice displays differently. I have only access to the final DOCs.

Isolated in this example is the apparent use of a "text box" from someone who aligned text to the right of it through trial and error. The horizontal "ruler" seems to have been used and displays incoherent(?) values in both software.

Text position in MS-Word 2003 is correct from the user perspective (see btb_word2003.png).

LibreOffice 4.2.0.4 displays this text at a different position (see btb_LibO40204.png).
Comment 1 mloc 2014-02-18 12:04:40 UTC
Created attachment 94280 [details]
Document displayed in MS-Word 2003
Comment 2 mloc 2014-02-18 12:12:23 UTC
Created attachment 94281 [details]
Document displayed in LibreOffice Writer 4.2.0.4
Comment 3 Dominique Boutry 2014-02-20 13:28:55 UTC
Hi.

Under WORD, the frame has "style d'habillage=Encadré" and "Positionnement du texte=Des deux cotés" (sorry, I have W97 in French), and only the first indent (Positif 1,27 cm) of your sentence "Artistically positioned text" is taken into account.

UNder LibO 4.2.0.4 on Win7, the frame has "Wrap -> Page wrap", and both indents (Before text 5.08 cm and First line 1.27 cm) of your sentence are taken into account.

In both cases, the horizontal ruler seems inconsistent with your sentence's placement when the caret is in it, but drag the text box to the right, you will notice that it is not the case.

Related to bug 71319.
Comment 4 Yousuf Philips (jay) (retired) 2014-07-11 03:18:38 UTC
Confirmed it looks the exact same in 3.3.0 and master on Linux Mint, which it looks different from MS Word 2007.
Comment 5 QA Administrators 2015-07-18 17:43:31 UTC Comment hidden (obsolete)
Comment 6 mloc 2015-07-20 07:47:07 UTC
Bug is still present in version 4.4.4.3 (Windows 7x64). No apparent difference.
Comment 7 Xisco Faulí 2016-08-11 16:23:51 UTC
This issue is still reproducible with

Version: 5.2.0.4
Build ID: 066b007f5ebcc236395c7d282ba488bca6720265
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: es-ES (es_ES)
Comment 8 Telesto 2016-12-06 12:40:31 UTC
This issue is still reproducible with:
Version: 5.4.0.0.alpha0+
Build ID: 33f5bc54aaa7fe7aa9335726e30f9c349155e04d
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-12-01_23:21:05
Locale: nl-NL (nl_NL); Calc: CL
Comment 9 Justin L 2017-09-05 22:55:39 UTC
Created attachment 136053 [details]
textbox_cancelsIndent.doc: extreme example of anchored object cancelling left indent

This is a fascinating bug. In MSOffice, move the textbox out of the text area (into the margin) and watch the text jump into the 8cm left indent that is defined. Move the textbox back into the textframe area, and the left indent is ignored.

Right Indents and First Indents are stilled used, but not the Left Indent. However, I don't see the same thing happening in DOCX.
Comment 10 QA Administrators 2018-10-02 02:55:27 UTC Comment hidden (obsolete)
Comment 11 mloc 2018-10-10 07:06:18 UTC
Bug is still present in latest:

Version: 6.1.2.1 (x64)
Build ID: 65905a128db06ba48db947242809d14d3f9a93fe
Threads CPU : 4; OS : Windows 6.1; UI Render : par défaut; 
Locale : fr-FR (fr_FR); Calc: group threaded
Comment 12 QA Administrators 2019-10-11 02:36:08 UTC Comment hidden (obsolete)
Comment 13 mloc 2019-10-14 07:40:13 UTC
Bug still present in :

Version: 6.3.2.2 (x64)
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
Threads CPU : 6; OS : Windows 10.0; UI Render : GL; VCL: win; 
Locale : fr-FR (fr_FR); Langue IHM : fr-FR
Calc: threaded
Comment 14 Justin L 2020-07-25 11:18:14 UTC
Created attachment 163516 [details]
textbox_cancelsIndent.pdf: MS Word 2016 upon opening the file.

(In reply to Justin L from comment #9)
> This is a fascinating bug. In MSOffice, ...

Yes, I think it is worth repeating that it is ONLY in MS Office where the placement of the textbox affects the margins. Confirmed the same behaviour in MS Office 2016 when using attachment 136053 [details].
Comment 15 Justin L 2020-07-25 11:23:37 UTC
Created attachment 163517 [details]
textbox_cancelsIndent_compat11.docx: also true with DOCX in compatibility mode.

Word 2016 looks like comment 14 when opening this DOCX version - and acts the same way as the DOC file - where the text jumps into the position that LO shows it when the textbox is moved outside of the margins.
Comment 16 Justin L 2020-07-25 11:26:33 UTC
Created attachment 163518 [details]
textbox_cancelsIndent_compat15.docx: MSOffice 2016 saved in native mode.

This one looks VERY strange in MS Office. Yes, it does honour the left margin settings, but because the textbox drops below the bottom border, the text doesn't wrap around it. Shorting it to fit inside of the margins lets the text wrap around it - just like LO shows things.
Comment 17 Justin L 2020-07-25 11:28:26 UTC
Created attachment 163519 [details]
textbox_cancelsIndent_compat15.pdf: How MS Word 2016 looks opening the file.

All of this bizarreness leads me to think it is probably better if we are NOT compatibility with MS in these particular cases.
Comment 18 QA Administrators 2022-07-26 03:29:23 UTC Comment hidden (obsolete)
Comment 19 mloc 2022-07-26 07:02:40 UTC
Still present.

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 6; OS: Windows 10.0 Build 22000; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded