summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d372c7a)
raw | patch | inline | side by side (parent: d372c7a)
author | mental <mental@users.sourceforge.net> | |
Fri, 11 Jul 2008 01:37:26 +0000 (01:37 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Fri, 11 Jul 2008 01:37:26 +0000 (01:37 +0000) |
src/sp-feflood.cpp | patch | blob | history |
diff --git a/src/sp-feflood.cpp b/src/sp-feflood.cpp
index 75cc377344b0d809542be82878f2a207fc785e95..14488b7fb52466938cab10610eef1cbfbb013cd8 100644 (file)
--- a/src/sp-feflood.cpp
+++ b/src/sp-feflood.cpp
}
static void
-sp_feFlood_init(SPFeFlood */*feFlood*/)
+sp_feFlood_init(SPFeFlood *feFlood)
{
+ feFlood->opacity = 1;
}
/**
SPFeFlood *feFlood = SP_FEFLOOD(object);
(void)feFlood;
gchar const *cend_ptr = NULL;
+ gchar *end_ptr = NULL;
guint32 read_color;
double read_num;
}
break;
case SP_PROP_FLOOD_OPACITY:
- read_num = helperfns_read_number(value);
+ if (value) {
+ read_num = g_ascii_strtod(value, &end_ptr);
+ if (*end_ptr) {
+ g_warning("Unable to convert \"%s\" to number", value);
+ read_num = 1;
+ }
+ }
+ else {
+ read_num = 1;
+ }
if (read_num != feFlood->opacity){
feFlood->opacity = read_num;
object->parent->requestModified(SP_OBJECT_MODIFIED_FLAG);