Bug 127622 - A text frame is imported from a specific DOCX as several separate frames which overlap
Summary: A text frame is imported from a specific DOCX as several separate frames whic...
Status: RESOLVED DUPLICATE of bug 105035
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks: DOCX-Frames
  Show dependency treegraph
 
Reported: 2019-09-18 11:59 UTC by Mike Kaganski
Modified: 2023-04-12 07:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A DOCX with a text frame (26.24 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-09-18 11:59 UTC, Mike Kaganski
Details
Comparison LO to Word (114.68 KB, image/png)
2019-09-18 11:59 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2019-09-18 11:59:03 UTC
Created attachment 154258 [details]
A DOCX with a text frame

Opening the attachment in LO produces a set of several overlapping frames, the result is unreadable.

Tested with Version: 6.3.2.1 (x64)
Build ID: db810050ff08fd4774137f693d5a01d22f324dfd
CPU threads: 12; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded
Comment 1 Mike Kaganski 2019-09-18 11:59:47 UTC
Created attachment 154260 [details]
Comparison LO to Word
Comment 2 Dieter 2019-09-19 06:24:00 UTC
I confirm it with

Version: 6.4.0.0.alpha0+ (x64)
Build ID: f0c832acb53326ccc9a8c1a47401fbc9e1081feb
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2019-09-11_05:46:53
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded

and also with

Version: 5.4.7.2 (x64)
Build-ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU-Threads: 4; BS: Windows 6.19; UI-Render: GL; 
Gebietsschema: de-DE (de_DE); Calc: group
Comment 3 NISZ LibreOffice Team 2020-05-15 16:36:12 UTC
The text in the frame has several paragraphs and they have different paragraph styles set. This seems to be the basis of breaking up the frame, a very interesting solution to handle the situation.

Setting the frames paragraphs to the same style in Word makes the frame split go away in Word. 
Then it is possible to set different paragraph styles to the frames paragraphs and to export that as one frame to docx which then stays one frame after reopen both in Word and Writer.
Comment 4 QA Administrators 2022-05-16 03:34:48 UTC Comment hidden (obsolete)
Comment 5 Dieter 2022-05-20 16:52:52 UTC
Still present in

Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 6 Justin L 2023-03-15 19:34:35 UTC
(In reply to NISZ LibreOffice Team from comment #3)
> The text in the frame has several paragraphs and they have different
> paragraph styles set. This seems to be the basis of breaking up the frame
Yes, the documentation says that only "exactly identically defined framePr's are grouped together. So if there are any differences in x, y, etc, then they are separate frames.
Comment 7 Justin L 2023-03-15 19:39:49 UTC

*** This bug has been marked as a duplicate of bug 105035 ***
Comment 8 Commit Notification 2023-04-12 07:15:36 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e0e33aa622968bc2e182099670a024a1d00b8e5c

tdf#105035 tdf#127622 writerfilter framePr: compare using style info

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.