diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/filters/flood.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/filters/flood.cpp b/src/filters/flood.cpp index d5de57785..170bed767 100644 --- a/src/filters/flood.cpp +++ b/src/filters/flood.cpp @@ -152,9 +152,13 @@ sp_feFlood_set(SPObject *object, unsigned int key, gchar const *value) case SP_PROP_FLOOD_OPACITY: if (value) { read_num = g_ascii_strtod(value, &end_ptr); - if (end_ptr != NULL) { - g_warning("Unable to convert \"%s\" to number", value); - read_num = 1; + if (end_ptr != NULL) + { + if (*end_ptr) + { + g_warning("Unable to convert \"%s\" to number", value); + read_num = 1; + } } } else { |
