Code

Added/Fixed Pango font weights. Included Jon's workaround for Pango
[inkscape.git] / src / helper-fns.h
index 18e065a8dc85074842e37ac3bf2e807871846ad0..2c2db92c46a87005a1f5b79529c4351bfda9f51b 100644 (file)
@@ -5,7 +5,7 @@
  * Some helper functions
  *
  * Authors:
- *   Felipe CorrĂȘa da Silva Sanches <felipe.sanches@gmail.com>
+ *   Felipe CorrĂȘa da Silva Sanches <juca@members.fsf.org>
  *
  *
  * Copyright (C) 2006 Hugo Rodrigues
  * is not known beforehand. For example, see sp_feColorMatrix_set in
  * sp-fecolormatrix.cpp */
 inline double helperfns_read_number(gchar const *value, bool warning = true) {
-    if (!value) return 0;
+    if (!value) {
+        g_warning("Called helperfns_read_number with value==null_ptr, this can lead to unexpected behaviour.");
+        return 0;
+    }
     char *end;
     double ret = g_strtod(value, &end);
     if (*end) {