[upstream] calc: move cell does not update row sum

Bug #1704740 reported by SatPhil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
Medium
libreoffice (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

See attached test case. Sum two rows: A1 + B1 = C1; A2 + B2 = C2 where B1 is blank. Cut B2 and paste into B1. Result C2 is decremented correctly by old B2 value; but result C1 is NOT incremented by new B1 value. Formula of C1 remains correct =SUM($Sheet1.A1:B1) as is C2's formula but C1 result is wrong. Saving file, close and re-open does not fix incorrect C1 result. Undo undo to return to initial state results in C2 now having incorrect result. Bug occurs whether drag and drop or control-x/control-v used. This is a data integrity issue as the wrong answer is being displayed.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libreoffice-calc 1:5.1.6~rc2-0ubuntu1~xenial2
ProcVersionSignature: Ubuntu 4.4.0-83.106-generic 4.4.70
Uname: Linux 4.4.0-83-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.1-0ubuntu2.9
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Jul 17 17:33:42 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-05-08 (435 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
SatPhil (satphil) wrote :
Revision history for this message
In , Aron Budea (baron-z) wrote :

Created attachment 146149
Sample ODS

- Open attached spreadsheet.
- Cut A1.
- Paste into A2 (overwrite existing data).

=> F2, which is the sum of A2:D2, isn't updated accordingly (should become 22 instead of 26).

Observed using LO 6.2.0.0.alpha1+ (313392119522c21a6ecd14403d6f92c948149df7) & 4.4.0.3 / Ubuntu 18.04.
No issue in LO 4.3.0.4.
=> regression

Bibisected to the following commit using repo bibisect-44max.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=5ef856e975d7c0396984d588a43fd1a7c7085c55
author Kohei Yoshida <email address hidden> 2014-11-18 21:03:05 -0500
committer Kohei Yoshida <email address hidden> 2014-11-18 21:03:50 -0500

Use group area listeners during ODS import.

Revision history for this message
In , Aron Budea (baron-z) wrote :

There are a couple of other, already fixed bugs starting with the same commit, eg. bug 86615.

Revision history for this message
In , Raal (raal) wrote :

Confirm with Version: 6.2.0.0.alpha1+
Build ID: a50f845957fff66ca7f459da4878be4597e0bae3
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: x11;

Revision history for this message
Olivier Tilloy (osomon) wrote :

I can reliably reproduce the issue with the test case attached, on Ubuntu 16.04 and 19.04 (libreoffice 6.1.3.2).
I can also reproduce the issue with the upstream build of libreoffice (6.1.3.2).

Would you mind filing an upstream bug report at https://bugs.documentfoundation.org/enter_bug.cgi?product=LibreOffice&format=guided and sharing the link to that bug here?

Thanks!

Revision history for this message
In , SatPhil (satphil) wrote :

Description:
See attached test case. Sum two rows: A1 + B1 = C1; A2 + B2 = C2 where B1 is blank. Cut B2 and paste into B1. Result C2 is decremented correctly by old B2 value; but result C1 is NOT incremented by new B1 value. Formula of C1 remains correct =SUM($Sheet1.A1:B1) as is C2's formula but C1 result is wrong. Saving file, close and re-open does not fix incorrect C1 result. Undo undo to return to initial state results in C2 now having incorrect result. Bug occurs whether drag and drop or control-x/control-v used. This is a data integrity issue as the wrong answer is being displayed.

Steps to Reproduce:
1. Sum two rows: A1 + B1 = C1; A2 + B2 = C2 where B1 is blank.
2. Cut B2 and paste into B1. Result C2 is decremented correctly by old B2 value; but result C1 is NOT incremented by new B1 value.
3. Formula of C1 remains correct =SUM($Sheet1.A1:B1) as is C2's formula but C1 result is wrong.
4. Saving file, close and re-open does not fix incorrect C1 result.
5. Undo undo to return to initial state results in C2 now having incorrect result.
6. Bug occurs whether drag and drop or control-x/control-v used.

Actual Results:
C1 not incremented by new B1 value; undo does not return to initial state

Expected Results:
C1 incremented by new B1 value; undo does return to initial state

Reproducible: Always

User Profile Reset: No

Additional Info:
Reproduced reliably by <email address hidden> on Ubuntu 16.04 and 19.04 (libreoffice 6.1.3.2).
He can also reproduce the issue with the upstream build of libreoffice (6.1.3.2)

Revision history for this message
In , SatPhil (satphil) wrote :

Created attachment 146856
"Before" state of test case.

Revision history for this message
SatPhil (satphil) wrote :

Thanks for looking at this. Filed upstream on Bugzilla: bug 121568

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

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

Regression introduced by https://cgit.freedesktop.org/libreoffice/core/commit/?id=5ef856e975d7c0396984d588a43fd1a7c7085c55, which is the same as in bug 121043.
Closing as RESOLVED DUPLICATED

*** This bug has been marked as a duplicate of bug 121043 ***

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 121568 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

Hi Eike, I've just found this issue as being the same root cause of bug 121568, I thought you might be interested in this issue as it's affecting formulas...

Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Invalid
Olivier Tilloy (osomon)
Changed in df-libreoffice:
importance: Medium → Unknown
status: Invalid → Unknown
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Oliver-brinzing (oliver-brinzing) wrote :

this issue is no longer reproducible with:

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 3140194a85fe4a6ac69c8cddc4d3b019430cd6e8
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win;
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded

-> F2 is 22 now after pasting

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

Still reproducible in

Version: 6.3.0.0.alpha0+
Build ID: a11a2d84b09f85d2020c47f3ce42cd9efbff818a
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

Revision history for this message
In , Oliver-brinzing (oliver-brinzing) wrote :

(In reply to Xisco Faulí from comment #6)
> Still reproducible in
> Version: 6.3.0.0.alpha0+
> Build ID: a11a2d84b09f85d2020c47f3ce42cd9efbff818a

are you sure ? i can not reproduce again in my new dev build:

Version: 6.3.0.0.alpha0+ (x64)
Build ID: a11a2d84b09f85d2020c47f3ce42cd9efbff818a
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win;
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :
Revision history for this message
In , Xiscofauli (xiscofauli) wrote :
Changed in df-libreoffice:
status: Confirmed → Fix Released
Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

Setting to VERIFIED FIXED

summary: - calc: move cell does not update row sum
+ [upstream] calc: move cell does not update row sum
Changed in libreoffice (Ubuntu):
status: New → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Upstream fix is scheduled for 6.3.0 (Week 32)

Changed in libreoffice (Ubuntu):
status: Fix Committed → In Progress
Changed in libreoffice (Ubuntu):
status: In Progress → Triaged
Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.