Code

When an image is clipped, the curve used for snapping must be updated
authordvlierop2 <dvlierop2@users.sourceforge.net>
Fri, 29 Jun 2007 14:12:19 +0000 (14:12 +0000)
committerdvlierop2 <dvlierop2@users.sourceforge.net>
Fri, 29 Jun 2007 14:12:19 +0000 (14:12 +0000)
src/sp-image.cpp

index 6ff6bb806339d14fd983638b617c565e0a63faa1..9f67670504a80eb268d1a5e22ea94d9db9bae50d 100644 (file)
@@ -685,6 +685,8 @@ sp_image_set (SPObject *object, unsigned int key, const gchar *value)
                        ((SPObjectClass *) (parent_class))->set (object, key, value);
                break;
        }
+       
+       sp_image_set_curve(image); //creates a curve at the image's boundary for snapping
 }
 
 static void
@@ -882,7 +884,6 @@ sp_image_update (SPObject *object, SPCtx *ctx, unsigned int flags)
                                }
                        }
        }
-       sp_image_set_curve((SPImage *) object); //creates a curve at the image's boundary for snapping
        sp_image_update_canvas_image ((SPImage *) object);
 }