]> saetta.ns0.it Git - zakform/gdaex/commitdiff
Use of ZakUtils::string_to_boolean.
authorAndrea Zagli <azagli@libero.it>
Mon, 1 May 2017 13:08:55 +0000 (15:08 +0200)
committerAndrea Zagli <azagli@libero.it>
Mon, 1 May 2017 13:08:55 +0000 (15:08 +0200)
src/form.c

index 3511092d0e891e9e847696c8b42363ca6935eb1e..7b35bbd61a6b0f8ebd0b8024d60f43d30c25ee67 100644 (file)
@@ -342,7 +342,7 @@ static GValue
                }
        else if (g_ascii_strcasecmp (type, "boolean") == 0)
                {
-                       ret = zak_utils_gvalue_new_boolean (g_strcmp0 (value, "TRUE") == 0);
+                       ret = zak_utils_gvalue_new_boolean (zak_utils_string_to_boolean (value));
                }
        else if (g_ascii_strcasecmp (type, "date") == 0)
                {