Bug 73553 - FILEOPEN: OOXML: incorrect position of colors in gradient fill
Summary: FILEOPEN: OOXML: incorrect position of colors in gradient fill
Status: RESOLVED DUPLICATE of bug 69654
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.3.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-13 13:12 UTC by Jacobo Aragunde Pérez
Modified: 2014-02-16 07:25 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test case (28.47 KB, application/x-vnd.oasis.opendocument.text)
2014-01-13 13:12 UTC, Jacobo Aragunde Pérez
Details
Side-by-side comparison (141.09 KB, image/png)
2014-01-13 13:13 UTC, Jacobo Aragunde Pérez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacobo Aragunde Pérez 2014-01-13 13:12:15 UTC
Created attachment 91944 [details]
Test case

Compare the colors of the shape contained in the attached document when you open it with MS Office and LibreOffice: the order of the first and second colors is swapped.

Check the OOXML definition of the gradient with the definition of a document exported from LibO:

Original document, see how the second and the third colors are equal:
<a:gradFill>
  <a:gsLst>
    <a:gs pos="0">
      <a:schemeClr val="accent5"/>
    </a:gs>
    <a:gs pos="50000">
      <a:schemeClr val="accent1">
        <a:tint val="44500"/>
        <a:satMod val="160000"/>
      </a:schemeClr>
    </a:gs>
    <a:gs pos="100000">
      <a:schemeClr val="accent1"/>
    </a:gs>
  </a:gsLst>
  <a:lin ang="5400000" scaled="0"/>
</a:gradFill>

Exported document, see how the first and the third colors are equal now:
<a:gradFill>
  <a:gsLst>
    <a:gs pos="0">
      <a:srgbClr val="ff388c"/>
    </a:gs>
    <a:gs pos="50000">
      <a:srgbClr val="005bd3"/>
    </a:gs>
    <a:gs pos="100000">
      <a:srgbClr val="ff388c"/>
    </a:gs>
  </a:gsLst>
  <a:lin ang="5400000"/>
</a:gradFill>
Comment 1 Jacobo Aragunde Pérez 2014-01-13 13:13:01 UTC
Created attachment 91945 [details]
Side-by-side comparison

Comparison between the original and the imported document.
Comment 2 tommy27 2014-02-16 07:25:12 UTC
seems an already known issue.

*** This bug has been marked as a duplicate of bug 69654 ***