Code

Fixed icon loading, cacheing and fallback to use stock mechanisms.
[inkscape.git] / src / helper-fns.h
index b1a1e37f05f744bcf689db179165a9d33bb7627b..39d919aa7b4c8472355516557b60ec4d80715a80 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 #include <string.h>
-
+#include <vector>
 #include <sstream>
 
 // calling helperfns_read_number(string, false), it's not obvious, what
@@ -61,6 +61,16 @@ inline std::vector<gdouble> helperfns_read_vector(const gchar* value, int size){
         return v;
 }
 
+inline std::vector<gdouble> helperfns_read_vector(const gchar* value){
+        std::vector<gdouble> v;
+        std::istringstream is(value);
+        gdouble d;
+        while (is >> d){
+            v.push_back(d);
+        }
+        return v;
+}
+
 #endif /* !SEEN_HELPER_FNS_H */
 
 /*