<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 - Inserting a column in a sheet causes erroneus rewriting of the formulas in a old Excel 97-2003 xls formatted file"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=142010">142010</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Inserting a column in a sheet causes erroneus rewriting of the formulas in a old Excel 97-2003 xls formatted file
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.1.0.3 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>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>master@gigantesco.org
</td>
</tr></table>
<p>
<div>
<pre>Description:
In the first attached file (potenze_ok.xls), if I insert a column in the first
position "A", some formulas do not get rewritten correctly. Look for instance
at cell F74.
It contains the formula "=RESTO(F$71+$C74;9)" it should be rewritten
"=RESTO(F$71+$D74;9)" after the column insertion. Instead it becomes:
"=RESTO(G$71+$K74;9)" with the "K" instead of "D".
Same behaviour also in other cells but not to all.
It seems not to happen if I first save the file and after make the column
insertion.
It also seems that if after the insertion I do a UnDo "CTRL-Z an ReDo the
operation the result is correct.
If instead after the insertion I save the file, it remains corrupted. See the
second attachment (potenze_err.xls)
Being an old file I'm not able to say if it is worth to investigate the matter.
Steps to Reproduce:
1.Open the file and look at the formula in G74
2.Insert a new column in A.
3.Look at the rewritten formula in G74.
Actual Results:
formula before: =RESTO(F$71+$C74;9)
Expected formula: =RESTO(G$71+$D74;9)
Actual formula: =RESTO(G$71+$K74;9)
Expected Results:
The result formula gives error.
Reproducible: Always
User Profile Reset: No
OpenGL enabled: Yes
Additional Info:
Version: 7.1.0.3 / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); UI: it-IT
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>