Code

rationalize function names and remove spurious soft_ptr
[inkscape.git] / src / style.cpp
index 3693c5d2b9a76af7e723f26f221f80eccad1a8ae..2a0a30bd165b91fb4b12171307aa3bb3463b90da 100644 (file)
@@ -40,6 +40,7 @@
 #include "xml/repr.h"
 #include "unit-constants.h"
 #include "isnan.h"
+
 using Inkscape::CSSOStringStream;
 using std::vector;
 
@@ -2914,7 +2915,12 @@ sp_style_read_ipaint(SPIPaint *paint, gchar const *str, SPStyle *style, SPDocume
                 ++str;
             }
             if (strneq(str, "icc-color(", 10)) {
-                /* fixme: Parse icc-color to paint->iccColor here. */
+                SVGICCColor* tmp = new SVGICCColor();
+                if ( ! sp_svg_read_icc_color( str, &str, tmp ) ) {
+                    delete tmp;
+                    tmp = 0;
+                }
+                paint->iccColor = tmp;
             }
         }
     }