bugPSPP - Bugs: bug #58757, gui: Copy and Cut with active...

 
 

bug #58757: gui: Copy and Cut with active value label view store different data on clipboard

Submitter:  Friedrich Beckmann <beckmanf>
Submitted:  Sun 12 Jul 2020 08:48:18 AM UTC
   
 
Category:  Graphical User Interface Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 12 Jul 2020 07:09:17 PM UTC, comment #1: 

I fixed this with commit

http://git.savannah.gnu.org/cgit/pspp.git/commit/?id=1442abd35fe6f3087bdb14fe5c65437404cc4ae8

Now both copy and cut store labels instead of raw data on the clipboard if valuelabel view is active in the datasheet [Menu: View->Valuelabels].

Friedrich Beckmann <beckmanf>
Group Member
Sun 12 Jul 2020 08:48:18 AM UTC, original submission:  

When the value label view is active in the data view window, then Copy and Cut store different data on the clipboard.

Copy: The data with value labels is stored on the clipboard
Cut: The raw data is stored on the clipboard

To reproduce:

1. Create variable "a", "b",
2. Create a value label for value "5" = "donald"
3. Switch to data view and enter data for variable a:  "4" <ENTER> "5" <ENTER> "6" <ENTER>
4. Activate value label view => 5 is shown as "donald"
5. Select var a, cases 1 to 3 with a mouse selection rectangle
6A: Copy the data with <CTRL>c => Clipboard contains "4.00" NL "donald" NL "5.00" NL
6B: Cut the data with <CTRL>x => Clipboard contains "4.00" NL "5.00" NL "6.00" NL
7. Click var b case 1
8. Paste the data with <CTRL>v

Case A: Var b, case 2 is empty because the clipboard contains the value label
Case B: Var b, case 2 shows "5.00"

Expected: Copy and Cut should have the same data on the clipboard. When value label is active, that should be the labeled data.


Friedrich Beckmann <beckmanf>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by beckmanf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-12 beckmanf StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code