[Libreoffice-bugs] [Bug 142010] New: Inserting a column in a sheet causes erroneus rewriting of the formulas in a old Excel 97-2003 xls formatted file

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat May 1 08:39:19 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=142010

            Bug ID: 142010
           Summary: Inserting a column in a sheet causes erroneus
                    rewriting of the formulas in a old Excel 97-2003 xls
                    formatted file
           Product: LibreOffice
           Version: 7.1.0.3 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: master at gigantesco.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210501/2b0e045b/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list