X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-object.h;h=4879e5bea0fe3e7d71c4db7e2ff40f737dd7b79e;hb=d88d2aa6894cc84f414fbdb64899673c66bc52c1;hp=e853de097907055d0623422677b10fb8de7212d1;hpb=bfbf4f7827ccde4fb862c8e6380ec5857968f860;p=inkscape.git diff --git a/src/sp-object.h b/src/sp-object.h index e853de097..4879e5bea 100644 --- a/src/sp-object.h +++ b/src/sp-object.h @@ -287,6 +287,10 @@ struct SPObject : public GObject { } } + /** @brief Check if object is referenced by any other object. + */ + bool isReferenced() { return ( _total_hrefcount > 0 ); } + /** @brief Deletes an object. * * Detaches the object's repr, and optionally sends notification that the object has been