From 475baffca930c4bdbd9db52139e30eb1c8e8604c Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Wed, 8 Jul 2020 13:49:42 +0200 Subject: [PATCH] gui: cut from editable to clipboard when cell is focused When a cell is focused, then the cut operation must operate on the selection in the cell editable and not on the complete cell, i.e. the store content. --- src/ui/gui/psppire-data-window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index 438779675b..5b5343c693 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -1073,6 +1073,11 @@ on_cut (PsppireDataWindow *dw) SswSheet *sheet = SSW_SHEET (dw->data_editor->data_sheet); SswRange sel = *sheet->selection; +#if (SSW_SHEET_API_VERSION >= 1) + if ((ssw_sheet_get_api_version() >= 1) && ssw_sheet_try_cut (sheet)) + return; +#endif + GtkClipboard *clip = gtk_clipboard_get_for_display (gtk_widget_get_display (GTK_WIDGET (dw)), GDK_SELECTION_CLIPBOARD); -- 2.30.2