Created attachment 114429 [details]
Example RTF chart
When the chart colors come from a style and not set manually, the RTF importer sets them incorrectly.
Steps to reproduce.
1. Open ChartColorBug.docx
2. Open ChartColorBug.rtf
The correct colors should be yellow and turquoise as the .docx importer correctly sets. The .rtf file was made by saving the .docx as .rtf in MSO 2013.
Note the incorrect Word Art in the .docx was already reported as Bug 82575.
Created attachment 114430 [details]
DOCX importer correctly sets the colors
Reproducible with LO 22.214.171.124, Win 8.1
The earliest I can see the chart importing at all is
in the bibisect 43all repository.
Most likely this is not a regression but an implementation error - it hasn't worked since the feature was first introduced
I dug a little deeper and it appears that Word saves both a thumbnail image of charts and the chart itself. Since our rtf filter doesn't decode charts, we use the incorrect thumbnail image. Adding Miklos who works on rtf.
Migrating Whiteboard tags to Keywords: (implementationError)
Migrating Whiteboard tags to Keywords: (bibisected)
Yes, the DOCX vs RTF import result is about DOCX importing the chart natively, while RTF just shows the replacement image. What's interesting is that the RTF result is the one that matches the Word colors. So I would say either close this bug as invalid (as the RTF import is correct) or re-title this bug and mark it as an OOXML chart problem that the DOCX import result doesn't match the Word one.
Luke: can you please do one of the above?
The issue is with the RTF bugdoc. On first load in Word in "Protected View", the colors are Yellow/Red. After you click "Enable Editing", the colors switch to Yellow/Turquoise (Word export bug?).
Since we display the same Yellow/Red colors as Word's "Protected View", I'm going to change this from a Bug to an Enhancement. In Order to display this the same as Word's Normal View we're going to have add Chart support to our RTF importer instead of displaying the incorrect thumbnail.
I don't think there's anything wrong the OOXML importer here. Writer matches Word.
Image rather than chart is still imported in Version: 126.96.36.199.alpha1+ (x64)
Build ID: a3783c0af4bd21eb9c001aadc60c660c06a47779