X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fobject.cpp;h=ba1810f913ebbc20a59a53c50aa7d8936cdfdd63;hb=8b7d4054b05002d82338775ac9b4ee764a8560e4;hp=1b48a862ae6b634c499fa49c094e54bc5c41cb05;hpb=b88d3630a0e3fdd763db018bbe5dbfe3180a95f2;p=r2c2.git diff --git a/source/libr2c2/object.cpp b/source/libr2c2/object.cpp index 1b48a86..ba1810f 100644 --- a/source/libr2c2/object.cpp +++ b/source/libr2c2/object.cpp @@ -57,4 +57,26 @@ bool Object::snap_to(const Object &other, float limit, SnapType what) return false; } +Object *Object::get_link(unsigned) const +{ + throw out_of_range("Object::get_link"); +} + +bool Object::break_link(Object &other) +{ + unsigned nls = get_n_link_slots(); + for(unsigned i=0; i