[Libreoffice-bugs] [Bug 111622] FILEOPEN: DOCX rendered with a greyscale chart instead of a colored.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Nov 22 20:35:11 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111622

Mike <bugzilla at mkr.email> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.4.7.2 release             |3.3.0 release

--- Comment #7 from Mike <bugzilla at mkr.email> ---
I created a minimum test case for this issue, that I attached now („Minimum
test case.docx“). To create this, I took the original file „Greyscales instead
of colors.docx“ and cut it down.

Issue: LO renders the rectangle of „Minimum test case.docx“ in grey scales
(instead of blue). Writer gets the wrong color scheme.

Then did I changed the color of the rectangle from "Automatic" to blue. I saved
this as „Minimum Text case fixed.docx“. This does the Job for Writer.

In the fixed test case, word\charts\chart1.xml got the more 
lines (line 40 to 42):
<a:solidFill>
<a:schemeClr val="accent1"/>
</a:solidFill>


This issue is there since LO 4.2. From release 3.3 to 4.0 only a blank page
appeared (with both files!)

I'm not a coder, but it seems to be about this:

„ChartShapeProperties“→“SolidFill“→“SchemeColor“

using DocumentFormat.OpenXml.Drawing;
using DocumentFormat.OpenXml;
namespace GeneratedCode
{
    public class GeneratedClass
    {
        // Creates an SchemeColor instance and adds its children.
        public SchemeColor GenerateSchemeColor()
        {
            SchemeColor schemeColor1 = new SchemeColor(){ Val = 
SchemeColorValues.Accent1 };
            return schemeColor1;
        }
    }
}

I also attached a PDF with screenshots to this report.

Regards,

Mike

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171122/e619d618/attachment.html>


More information about the Libreoffice-bugs mailing list