Code

setting of attributes and default values for feColorMatrix.
[inkscape.git] / src / helper-fns.h
index 10c311edab5e6578f3bd15ee0962f508e1f30a25..f588b9905970fd355fc6485b644e0011a9f3fad9 100644 (file)
@@ -39,7 +39,16 @@ static bool helperfns_read_bool(gchar const *value, bool default_value){
     }
     return default_value;
 }
+
+static std::vector<gdouble> helperfns_read_vector(const gchar* value, int size){
+        std::vector<gdouble> v(size, (gdouble) 0);
+        int i;
+        gchar** values = g_strsplit(value , " ", size);
+        for (i=0;i<size;i++)
+                v[i] = g_ascii_strtod(values[i], NULL);
+        return v;
+}
+
 #endif /* !SEEN_HELPER_FNS_H */
 
 /*