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 3. Compare 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 imports the chart (editable)
Reproducible with LO 4.4.1.2, Win 8.1
The earliest I can see the chart importing at all is source-hash-54aafdb04cf36eb2b2ddbbc2030d298f514a00e9 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) [NinjaEdit]
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? Thanks.
Miklos Vajna, 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: 6.1.0.0.alpha1+ (x64) Build ID: a3783c0af4bd21eb9c001aadc60c660c06a47779
Created attachment 171159 [details] Comparison MSO 2010 and LibreOffice 7.2 master The Chart in the RTF file is displayed with the same colours in LibreOffice and MSO Word 2010
Still reproducible in 7.2 master. The rtf importer imports the image/thumbnail rather than the chart. You cannot edit the .rtf chart like the .docx one.