From 40bedd131288dda1c09eab3442e133db6965523b Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 11 Jul 2020 06:37:36 +0200 Subject: [PATCH] Histogram Dialog: Allow only numeric variables to be selected --- src/ui/gui/psppire-dialog-action-histogram.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-dialog-action-histogram.c b/src/ui/gui/psppire-dialog-action-histogram.c index e6a6fe733e..f99000ac28 100644 --- a/src/ui/gui/psppire-dialog-action-histogram.c +++ b/src/ui/gui/psppire-dialog-action-histogram.c @@ -69,6 +69,9 @@ psppire_dialog_action_histogram_activate (PsppireDialogAction *a, GVariant *para pda->dialog = get_widget_assert (xml, "histogram-dialog"); pda->source = get_widget_assert (xml, "dict-view"); + g_object_set (pda->source, + "predicate", var_is_numeric, NULL); + act->variable = get_widget_assert (xml, "entry1"); act->curve = get_widget_assert (xml, "curve"); @@ -120,4 +123,3 @@ static void psppire_dialog_action_histogram_init (PsppireDialogActionHistogram *act) { } - -- 2.30.2