Bug 121668 - FILEOPEN DOCX Page Color created with Word disappears on the margins
Summary: FILEOPEN DOCX Page Color created with Word disappears on the margins
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: László Németh
URL:
Whiteboard:
Keywords:
Depends on: Whole-Page-Filling
Blocks: DOCX-Page
  Show dependency treegraph
 
Reported: 2018-11-23 10:32 UTC by NISZ LibreOffice Team
Modified: 2019-01-28 15:32 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the original document side by side in Word and Writer. (169.74 KB, image/png)
2018-11-23 10:32 UTC, NISZ LibreOffice Team
Details
Example file from Word (19.60 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-11-23 10:33 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2018-11-23 10:32:21 UTC
Description:
Page Color in DOCX documents created with Microsoft Word 2010 disappears on the margins when the document is opened in LibreOffice Writer.

Steps to Reproduce:
    1. Create a new document in Microsoft Word.
    2. On the Page Layout tab, in the Page Background group, click Page Color.
    3. Choose a color.
    4. Save the file as DOCX.
    5. Open the same file in LibreOffice Writer.
    6. Compare the original file opened in Word and Writer.

Actual Results:
The Page Color disappears on the margins when the document is opened in LibreOffice Writer.

Expected Results:
The Page Color should have the same style as the original file when the document is opened in Microsoft Word 2010.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 NISZ LibreOffice Team 2018-11-23 10:32:40 UTC
Created attachment 146969 [details]
Screenshot of the original document side by side in Word and Writer.
Comment 2 NISZ LibreOffice Team 2018-11-23 10:33:09 UTC
Created attachment 146970 [details]
Example file from Word
Comment 3 raal 2018-11-23 18:25:16 UTC
Confirm with 6.2 and 4.2;Linux
Comment 4 raal 2018-11-23 18:38:17 UTC
import of page background color was implemented in commit
commit 2161e695de0236a82e9661e8dd2af250f656bb0b
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Sat Sep 5 17:58:52 2015 +0800

    source-hash-992da0d5cf04497bad55637f6a6ebfcdaec03e16
    
    commit 992da0d5cf04497bad55637f6a6ebfcdaec03e16
    Author:     Miklos Vajna <vmiklos@suse.cz>
    AuthorDate: Mon May 27 17:09:44 2013 +0200
    Commit:     Miklos Vajna <vmiklos@suse.cz>
    CommitDate: Mon May 27 17:49:12 2013 +0200
    
        bnc#817956 DOCX import of document background color
    
        See wwSectionManager::SetSegmentToPageDesc(), this has to be applied to
        every page style.
Comment 5 László Németh 2018-11-23 19:57:43 UTC
Proposed fix: https://gerrit.libreoffice.org/#/c/63914/
Comment 6 BogdanB 2019-01-28 15:32:07 UTC
Works as expected on
Version: 6.3.0.0.alpha0+
Build ID: 9bc10964f0673b64e282ad567d08bf7ebba4df65
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-01-27_18:08:30
Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US
Calc: threaded

All page has a single colour, blue. Including margins.