Bug 137334

Summary: Fileopen DOCX: missing frame with paragraph level border set
Product: LibreOffice Reporter: Timur <timur>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: VERIFIED FIXED    
Severity: normal CC: libreoffice, xiscofauli
Priority: medium Keywords: filter:docx
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=97128
https://bugs.documentfoundation.org/show_bug.cgi?id=154703
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104461    
Attachments: DOCX compared MSO 2016 LO 7.1+
Full DOCX
Other DOCX that looks good
Very simple reproducer document
Screenshot of the reproducer document in Word and current master

Description Timur 2020-10-08 12:24:16 UTC
Created attachment 166185 [details]
DOCX compared MSO 2016 LO 7.1+

1 page DOCX attachment 166174 [details] opens wrong, without frame from header.
It's MSO created DOCX from DOC attachment 117968 [details] from bug 61967.
Comment 1 Timur 2020-10-08 12:27:42 UTC
Created attachment 166188 [details]
Full DOCX

Full 12-page MSO created DOCX from original DOC, for test.
Comment 2 Timur 2020-10-08 12:29:06 UTC
Created attachment 166189 [details]
Other DOCX that looks good

Other DOCX with frame in header looks good in LO. From bug 65881.
Comment 3 Xisco FaulĂ­ 2020-10-08 14:10:19 UTC
Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: a9976a958b2857e308c6598532151878615bfd9f
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 NISZ LibreOffice Team 2020-12-07 16:49:29 UTC
Created attachment 167907 [details]
Very simple reproducer document

I managed to reproduce the problem. 
We need one frame in Word with two (does not happen with one) paragraphs. 
One of them also needs a paragraph border set.
Open it in Writer and boom: no frame :)

This frame does not need to be in the header, breaks in the document body too.
Comment 5 NISZ LibreOffice Team 2020-12-07 16:50:09 UTC
Created attachment 167908 [details]
Screenshot of the reproducer document in Word and current master

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 561e5559bb68242c7f785f0ca3bee3eb12b58963
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 6 QA Administrators 2022-12-08 03:25:46 UTC Comment hidden (obsolete, spam)
Comment 7 Justin L 2023-04-22 23:08:59 UTC
fixed in LO 7.6 with commit 31ea6305b6a763ee48f639562313d9bd109a2923
Author: Justin Luth on Sat Apr 8 08:22:45 2023 -0400
    tdf#154703 writerfilter framePr: avoid exception with hasValue
Comment 8 Timur 2023-04-24 14:28:40 UTC
Verified for DOCX, opening and saving. Thanks Justin. 

DOC is wrong, but that would be another ticket.