<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILESAVE DOCX Linear gradient direction mirrored on saving"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=128648">128648</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILESAVE DOCX Linear gradient direction mirrored on saving
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.0.0.alpha1+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>libreoffice@nisz.hu
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Word has 8 default direction presets for linear gradient direction: 0, 45, 90,
135, 180, 225, 270 and 315 degrees. These are interpreted in clockwise
direction from 0 to 360.
LO engine uses the rotation values in counterclockwise direction and imports
these values from DOCX with corrections to get the same look as in Word: 
0 -> 270 ; 45 -> 225 ; 90 -> 180 ; 135 -> 135 ; 180 -> 270 ; 225 -> 45; 270 ->
0; 315 -> 315. 

Export to DOCX however is flawed, as the modified values are saved without
undoing the corrections, so the gradients appear mirrored in Word.

Steps to Reproduce:
1.      Open attached example document in Writer
2.      Observe that the gradients look the same as in Word
3.      Save the file and reopen in Word


Actual Results:
The gradient directions are mirrored.

Expected Results:
The gradient directions should be the same as in the original file.


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice details:
Version: 6.4.0.0.alpha1+ (x86)
Build ID: f0340d58cc0f2808ce8003099ff2a0495360f267
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>