
1 Jun
2010
1 Jun
'10
7:21 p.m.
On Sun, May 30, 2010 at 4:59 PM, <J.B.C.Engelen@...1578...> wrote:
Hi all,
Is the number of times an spobject is cloned (svg "use") counted?
Not as such, but every clone has a SPUseReference pointing to its original. That is a subclass of URIReference, and in that class we have _setObject which does:
if (_obj) { sp_object_href(_obj, _owner); _release_connection = _obj->connectRelease(sigc::mem_fun(*this, &URIReference::_release)); }
So, yes, when you clone an object, its hrefcount is incremented. This is not unique to clones, but then, other situations where it is also incremented (grepping finds only using object as marker) should be treated the same anyway.
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org