diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2009-04-21 14:13:06 +0000 |
|---|---|---|
| committer | jaspervdg <jaspervdg@users.sourceforge.net> | 2009-04-21 14:13:06 +0000 |
| commit | 2dd8926ab069ce4f278d407e8698ba7d8aaa9afd (patch) | |
| tree | 134e4bf18f9f2b7d508324fa54508b6ff1f2ca69 /src/helper-fns.h | |
| parent | Better color handling in Bumps (diff) | |
| download | inkscape-2dd8926ab069ce4f278d407e8698ba7d8aaa9afd.tar.gz inkscape-2dd8926ab069ce4f278d407e8698ba7d8aaa9afd.zip | |
Partial fix for bug 193926 , thanks to Preben Soeberg.
(bzr r7752)
Diffstat (limited to 'src/helper-fns.h')
| -rw-r--r-- | src/helper-fns.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/helper-fns.h b/src/helper-fns.h index 18e065a8d..d2a6c9b22 100644 --- a/src/helper-fns.h +++ b/src/helper-fns.h @@ -32,7 +32,10 @@ * 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) { |
