Code

Filter effects dialog:
[inkscape.git] / src / sp-item.cpp
index 8b101896f71bb93bc8b425acb0eac33528390f8a..469b95222cba39a74e921de55a31113367bae5a6 100644 (file)
@@ -62,6 +62,7 @@
 #include "util/reverse-list.h"
 
 #include "xml/repr.h"
+#include "extract-uri.h"
 
 #define noSP_ITEM_DEBUG_IDLE
 
@@ -448,7 +449,7 @@ sp_item_set(SPObject *object, unsigned key, gchar const *value)
             break;
         }
         case SP_PROP_CLIP_PATH: {
-            gchar *uri = Inkscape::parse_css_url(value);
+            gchar *uri = extract_uri(value);
             if (uri) {
                 try {
                     item->clip_ref->attach(Inkscape::URI(uri));
@@ -464,7 +465,7 @@ sp_item_set(SPObject *object, unsigned key, gchar const *value)
             break;
         }
         case SP_PROP_MASK: {
-            gchar *uri=Inkscape::parse_css_url(value);
+            gchar *uri = extract_uri(value);
             if (uri) {
                 try {
                     item->mask_ref->attach(Inkscape::URI(uri));
@@ -786,6 +787,8 @@ void sp_item_snappoints(SPItem const *item, SnapPointsIter p)
     if (item_class.snappoints) {
         item_class.snappoints(item, p);
     }
+    
+    *p = item->getCenter();
 }
 
 void