Bug 108235 - Pivot table update on undo lags a step behind
Summary: Pivot table update on undo lags a step behind
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: bibisected, regression
Depends on:
Blocks: Pivot-Table Undo-Redo
  Show dependency treegraph
Reported: 2017-05-30 05:16 UTC by Aron Budea
Modified: 2018-11-23 00:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Sample (21.47 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-05-30 05:16 UTC, Aron Budea

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2017-05-30 05:16:31 UTC
Created attachment 133714 [details]

1. Open the attached sample (a file from the source repo's unit tests), or any file with pivot chart.
2. Update autofilter selection twice.
3. Undo twice.

1st undo: pivot chart not updated.
2nd undo: pivot chart updated to reflect 1st undo state.

Reproduced using 5.5 master build (336f893c57c3c0281d4899629ad55603837d5d40) & 5.4 beta1 / Windows 7.
Comment 1 Jacques Guilleron 2017-05-30 10:27:35 UTC
Hi Aron,

I confirm this behavior on
LO Build ID: 0e6297932252403883a6057feee488e4ee2bc360
CPU threads: 2; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2017-05-23_00:14:17
Locale: fr-FR (fr_FR); Calc: CL

The pivot table autofilter is not updated on the first undo.
This issue doesn't exist in
LO Version ID : 235ab8a-3802056-4a8fed3-2d66ea8-e241b80
and begins with
LO (Build ID: e29a214)
under Windows 7 Home.
I changed summary chart to table.

Comment 2 Aron Budea 2017-06-01 10:23:55 UTC
Ok, if it's pivot-table-related, updating the META tracker it belongs to.
Comment 3 Xisco Faulí 2017-06-18 14:34:46 UTC
I can reproduce the problem in

Version (Build ID: 8669ad398a2971706ce22b6e5fe316991977452)
Comment 4 Aron Budea 2018-02-05 23:46:44 UTC
Bibisected using bibisect-43all, bug introduced in the following range, probably by one of Kohei's commits dealing with pivot tables: