From 14d4e1bb43f5c71a6c6d811a8e5a5427d029c68b Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 3 Jun 2017 11:36:06 +0200 Subject: [PATCH] Bugfix: wrong value test. --- src/formelementradio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formelementradio.c b/src/formelementradio.c index e6ddbdc..52b4c00 100644 --- a/src/formelementradio.c +++ b/src/formelementradio.c @@ -252,8 +252,8 @@ static GValue while (group != NULL) { if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (group->data))) - { - if ((gchar *)g_object_get_data (G_OBJECT (group->data), "return-value") == NULL) + {; + if ((gchar *)g_object_get_data (G_OBJECT (group->data), "return-value") != NULL) { g_value_set_string (ret, (gchar *)g_object_get_data (G_OBJECT (group->data), "return-value")); } -- 2.49.0