Download it now!
Bug 69648 - FILEOPEN: DOCX Import renders text-boxes with text alignement (text anchoring property of frame) wrong
Summary: FILEOPEN: DOCX Import renders text-boxes with text alignement (text anchoring...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) rc
Hardware: Other All
: medium normal
Assignee: Not Assigned
Whiteboard: BSA
Depends on:
Blocks: DOCX-Textbox DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
Reported: 2013-09-21 16:04 UTC by Adam CloudOn
Modified: 2019-10-30 11:58 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:

DOCX containing two shapes side-by-side with text inside each of them (25.81 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-09-21 16:04 UTC, Adam CloudOn
Screenshot comparison between MS Word and LibreOffice (116.39 KB, image/png)
2013-09-21 16:07 UTC, Adam CloudOn

Note You need to log in before you can comment on or make changes to this bug.
Description Adam CloudOn 2013-09-21 16:04:41 UTC
Created attachment 86263 [details]
DOCX containing two shapes side-by-side with text inside each of them

Problem description: 
When LO opens a DOCX that has 2 text-boxes side-by-side with text in them - the text inside the text-boxes is aligned to the center, instead of to the sides.

Steps to reproduce:
1. Load the attached DOCX in LO
2. The text is aligned in the text-boxes to the center

Current behavior:
LO renders the text in both text-boxes in the center

Expected behavior:
LO should render the text in both text-boxes to the left & right
Operating System: All
Version: Master
Comment 1 Adam CloudOn 2013-09-21 16:07:54 UTC
Created attachment 86264 [details]
Screenshot comparison between MS Word and LibreOffice
Comment 2 Cor Nouws 2013-09-25 19:39:39 UTC
I reproduce the problem in
(Did not yet check in older versions).

To look in details of the issue:
- select shape in Writer
- click Shft-F10 (context menu)
- choose Group > Ungroup
- now for the left shape > context menu
-   > Text .. Text anchor top left, OK
  > text in correct position
(Same for the frame right,  wih text anchor top right)

 - Should be checked in previous versions
 - Should be searched for duplicates
Comment 3 Cor Nouws 2013-09-25 19:42:48 UTC
3.3.4 and show no drawing frames at all.
So it's an not yet implemented detail of a recent implemented improved import
Comment 4 Cor Nouws 2013-09-25 19:48:44 UTC
In 4.1.0.x there is no visible import at all
In the frames are visible. so prolly is the first version
Comment 5 Xisco Faulí 2014-02-24 17:07:20 UTC
it's still present in:
   - Libreoffice Build  ID: 0a0440ccc0227ad9829de5f46be37cfb6edcf72
   - Libreoffice Build  ID: d7dbbd7842e6a58b0f521599204e827654e1fb8b

In Libreoffice ID: f839b5dd16c05c0eda21345ec36ec0cb024eb732 left text is imported correctly but not the right one
Comment 6 Joel Madero 2015-05-02 15:44:23 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2015-06-21 13:51:48 UTC
Now text is left-aligned in both boxes.

Win 7 Pro 64-bit Version:
Build ID: 3ecef8cedb215e49237a11607197edc91639bfcd
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-06-19_23:16:58
Locale: fi-FI (fi_FI)
Comment 8 QA Administrators 2016-09-20 10:11:40 UTC Comment hidden (obsolete)
Comment 9 Xisco Faulí 2016-10-09 22:34:56 UTC
text being left-aligned still reproducible in

Build ID: ae3ec79354f7b4967e736c6a4cd7c08fc52e2b7d
CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 10 Xisco Faulí 2017-10-03 14:17:28 UTC
Still reproducible in

Build ID: 34e8fd7e99489e9f50a512b07c6f3923b358b4d3
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 11 QA Administrators 2018-10-04 02:56:03 UTC Comment hidden (obsolete)
Comment 12 2019-10-30 00:43:03 UTC
Text is still left-aligned in both boxes, as first reported in comment 7

Version: (x64)
Build ID: f41f4c7f9507aeca13cb9df51f34d80e8ba30a99
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win;
Comment 13 Regina Henschel 2019-10-30 11:58:18 UTC
Problem seems to be handling of <w:bidi> element in a group.
Ungrouping the frames and resaving in Word365 solves it.

Remark: The "alignment" in the right frame is not a paragraph alignment, but is the result of right-to-left text direction by an <w:bidi> element.