[libgda] gda_numeric_set_double(): Do not reject a 0 value.



commit b7db38371156cd88babaabc4335ef474e877b125
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Nov 11 23:34:16 2011 +0100

    gda_numeric_set_double(): Do not reject a 0 value.

 libgda/gda-value.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index bca07a5..44c6f65 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -908,7 +908,6 @@ void
 gda_numeric_set_double (GdaNumeric *numeric, gdouble number)
 {
 	g_return_if_fail (numeric);
-	g_return_if_fail (number);
 	if (numeric->number)
 		g_free (numeric->number);
 	numeric->number = g_strdup_printf ("%lf", number);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]