<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 - Python doc.Sheets.copyByName(existingname, newname, position) does not update references in chart when copying sheets"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141337">141337</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Python doc.Sheets.copyByName(existingname, newname, position) does not update references in chart when copying sheets
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0.5.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</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>sdk
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nib70776@sjuaq.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=170821" name="attach_170821" title="calc document with sample charts">attachment 170821</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=170821&action=edit" title="calc document with sample charts">[details]</a></span>
calc document with sample charts
Libreoffice calc:
Python doc.Sheets.copyByName(existingname, newname, position) does not update
references in chart when copying sheets.
def copysheet(*args):
# chart refernces not updated
doc = XSCRIPTCONTEXT.getDocument()
sheetstocopy = doc.Sheets['Sheet1']
for case in range (5,0,-1):
nameBGx = 'd1-' + str(case)
if nameBGx in doc.Sheets:
doc.Sheets.removeByName(nameBGx)
for case in range (5,0,-1):
nameBGx = 'd1-' + str(case)
nosheets = doc.Sheets.Count
doc.Sheets.copyByName(sheetstocopy.Name, nameBGx, nosheets)
return None
Reference of all chart data remains at Sheet1.</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>