Bug 125095 - Erroneous DnD in Pivot Table Layout dialog
Summary: Erroneous DnD in Pivot Table Layout dialog
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard: target:6.3.0
Keywords: regression
Depends on:
Blocks:
 
Reported: 2019-05-03 06:35 UTC by Mike Kaganski
Modified: 2019-05-03 14:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2019-05-03 06:35:32 UTC
Steps:

1. In a new spreadsheet, put this to cells A1:B7:

	name	data
	a	1
	a	2
	b	3
	b	1
	b	2
	c	3

2. Select the two columns A and B, and open the Pivot Table Layout dialog using Data->Pivot Table->Insert or Edit..., and confirming the Select Source dialog.

3. In the dialog, Drag-and-Drop fields from Available Fields: list to sections (using Rows Fields: in this example):

3.1. Drag "name" from Available Fields: list to Rows Fields: list.
     => the field *moves* to the Rows Fields: list, *disappearing* from Available Fields: list, which is *wrong*, since it's correct to be able to put the same field into several areas, like into Row Fields, and into Data Fields - to see each name and its count.

3.2. Next, drag "data" field to the Rows Fields: list below the "name" which was put there previously. Now try to re-arrange the fields:
3.2.1. Drag "data" above "name"
       => it works, i.e. tdf#124633 was fixed in the meanwhile - good.
3.2.2. Now that "data" is above "name", drag "data" below "name"
       => "name" disappears - *this is wrong*.

Not reproducible in 6.2.3.2; reproducible in master.

Caolán, could you please take a look, given your commit https://git.libreoffice.org/core/+/f82356d9a1ce1457593a5f42728e2962561328cf ?
Comment 1 m_a_riosv 2019-05-03 08:15:23 UTC
Repro
Version: 6.3.0.0.alpha0+ (x64)
Build ID: f07e91ac739edf846ae9dda9b2305bae6dde489e
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-05-02_02:45:22
Locale: es-ES (es_ES); UI-Language: en-US
Calc: CL
1 Move 'name' to row fields
2 Move 'data' to row fields
3 Move 'data' from row to column fields
4 'name' disappear from row fields
Comment 2 Caolán McNamara 2019-05-03 13:08:24 UTC
odd, I'm not seeing that under Linux with any vclplug, its working as it should under gen/gtk/gtk3, hmm I can hazard a guess or two though
Comment 3 Commit Notification 2019-05-03 14:35:05 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/32bf3097805d3d688fad25f661f3f16b62d2a345%5E%21

tdf#125095 return DND_ACTION_NONE

It will be available in 6.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.