<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 - Stock Chart easily corrupts data on saving"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138556">138556</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Stock Chart easily corrupts data on saving
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.0.3.1 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (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>Chart
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>aerkiaga3@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Creating a Stock Chart with simple data, saving and reopening is sufficient to
corrupt the data. The styles applied to the chart elements were also altered.

Steps to Reproduce:
1. Open Writer or Impress (didn't test on Calc)
2. Click 'Insert' -> 'Chart...'
3. Select the chart, right click and open 'Chart Type...' dialog.
4. Select 'Stock Chart 1' as type.
5. Now open the 'Data Table' dialog.
6. There's a single data series with three components: 'Low Values', 'High
Values' and 'Close Values'. Click on the label for the data series and then on
'Delete Series'.
7. Click 'Insert Series' twice to insert two data series. These have the same
components, plus a fourth 'Open Values'.
8. Optionally, click on 'Delete Row' three times to simplify the next step.
9. Enter data on all cells except the 'Open Values'. Something like 1, 3, 2; 4,
6, 5 will do.
10. Close the dialog, deselect the chart, save the file and close LibreOffice.
11. Reopen the same file.

Actual Results:
The chart seems clearly broken, with a different style (some data series are
now black), names of data series removed, data corrupted and a new anonymous
data series. Opening the data table for this chart reveals that those 'Open
Values' are no longer there; while the one for the first data series has
apparently simply vanished, the second one has pushed into the 'Low Values' of
the data series, shifting all cells to the right, so the last cell overflows
into a new data series.

Expected Results:
The chart should contain the same data and have the same styles applied as when
it was originally saved.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
In a more complex example, other effects could be seen. Some series were
renamed while others weren't, line width was dropped, even some data series
were reordered.

Version: 7.0.3.1
Build ID: 00(Build:1)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.3-0ubuntu0.20.04.1
Calc: threaded</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>