Bug 286682

Summary: Background of the page is displaying in black color.
Product: [Applications] calligrawords Reporter: swathi <swathi.vegesna999>
Component: docAssignee: Matus Uzak <matus.uzak>
Status: REOPENED ---    
Severity: normal CC: abhishek.mittal, matus.uzak, ravenloveponies
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test data
Screenshot in MS Office
Screenshot in Calligra Words
Another test file with the same issue.
File displayed by MS Word 2003
File displayed by words

Description swathi 2011-11-15 12:36:21 UTC
Created attachment 65707 [details]
Test data

Version: git checkout 4102d598792bb66c5e11e3a2cb5e27a071714f01
      (Using KDE 4.6.3)                
     OS: Kubuntu 11.04
Test data is in Word 2003 format.
Open the same document in Calligra Words. 
Check the display of the background.

Expected outcome:
Background of the page should be white.
Actual outcome:
Background of the page is displaying in black color.
Frequency:
Always
Comment 1 swathi 2011-11-15 12:36:35 UTC
Created attachment 65708 [details]
Screenshot in MS Office
Comment 2 swathi 2011-11-15 12:37:04 UTC
Created attachment 65709 [details]
Screenshot in Calligra Words
Comment 3 Matus Uzak 2011-12-06 14:22:44 UTC
Created attachment 66436 [details]
Another test file with the same issue.
Comment 4 Matus Uzak 2011-12-06 14:25:41 UTC
Created attachment 66437 [details]
File displayed by MS Word 2003
Comment 5 Matus Uzak 2011-12-06 14:26:02 UTC
Created attachment 66438 [details]
File displayed by words
Comment 6 Matus Uzak 2011-12-06 14:49:50 UTC
Comments to the first test file (id=65707):

This one is tricky, because no page color is set according to the MS Word UI (Page Layout menu).  But looking at the binary, the background shape of the page has BLACK fill color specified.   The WHITE background seems to be used in the "Print Layout" mode.  As soon you switch to "Full Screen Reading" or "Web Layout" the background color is going to change to BLACK.  I'm not sure this should be considered to be a bug.

The "View" menu offers the following modes:
- Print Layout
- Full Screen Reading
- Web Layout
- Outline
- Draft
Comment 7 Matus Uzak 2011-12-06 15:02:33 UTC
Git commit 8bc7504aa7219a41d01563d6a616636335aaec9e by Matus Uzak.
Committed on 06/12/2011 at 15:53.
Pushed by uzak into branch 'master'.

DOC: page-layout - check if Fill Style info should be used.

BUG:286682

M  +50   -47   filters/words/msword-odf/document.cpp
M  +9    -16   filters/words/msword-odf/graphicshandler.cpp

http://commits.kde.org/calligra/8bc7504aa7219a41d01563d6a616636335aaec9e
Comment 8 Abhishek Mittal 2012-02-02 13:30:32 UTC
Matus, the bug is still reproducible with the original test data.Please take a look.
Comment 9 swathi 2012-10-23 08:55:02 UTC
Tested in git commit ad0416095c417a8cfa55306ea8959ac0ef4460bb.
Issue is still reproducible with the original test data. So reopening the bug.