<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 - Copying chart into Calc or Writer result wrong X/Y axis"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111636">111636</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Copying chart into Calc or Writer result wrong X/Y axis
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0.0.0.alpha0+ 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>Chart
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>bouron.d@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
X/Y axis of chart are modified after copy from Calc to Writer or Calc.
Thus, chart doesn't look like original one.
It is probably axis unit formats which are badly copied.
Data seems to be preserved.

Steps to Reproduce:
1. In attachment, copy chart or select range which contains chart.
2. Open a new tab or a new Writer document.
3. Paste it.

Actual Results:  
X axis unit is date format instead of numeric.
Y axis unit is decimal format instead of percentage.
Columns are misrepresented due to these changes.

Expected Results:
Correct X/Y axis unit formats.


Reproducible: Always

User Profile Reset: No

Additional Info:
In file sc/source/core/data/drwlayer.cxx, in function ScDrawLayer::CopyToClip,
if you change this line:

SdrObject* pNewObject = pOldObject->Clone();
by SdrObject* pNewObject = pOldObject->getFullDragClone();

You have a correct chart only when you copy your chart by selecting a cell
range, including the chart. But, you copy an image, not an editable chart.

Maybe we can understand what is the difference between these function and how
they work?


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101
Firefox/54.0</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>