Code

Updated cases for attributes added in <color-profile> support
[inkscape.git] / src / conn-avoid-ref.cpp
index df885d44c61717d425bbe5e3c54aeaa153512718..5de222adef48e3f4945536e02d63c6f67d88655f 100644 (file)
@@ -253,8 +253,7 @@ void avoid_item_move(NR::Matrix const *mp, SPItem *moved_item)
     Router *router = moved_item->document->router;
     Avoid::Polygn poly = avoid_item_poly(moved_item);
     if (poly.pn > 0) {
-        // moveShape actually destroys the old shapeRef and returns a new one.
-        moved_item->avoidRef->shapeRef = router->moveShape(shapeRef, &poly);
+        router->moveShape(shapeRef, &poly);
         Avoid::freePoly(poly);
     }
 }