Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::ObjectHierarchy::_addTop ( SPObject senior,
SPObject junior 
) [private]

adds objects in range [senior, junior) to the top

Add hierarchy from junior's parent to senior to this hierarchy's top.

Definition at line 69 of file object-hierarchy.cpp.

Referenced by setTop().

                                                                {
    g_assert(junior != NULL);
    g_assert(senior != NULL);

    SPObject *object=SP_OBJECT_PARENT(junior);
    do {
        _addTop(object);
        object = SP_OBJECT_PARENT(object);
    } while ( object != senior );
}


Generated by  Doxygen 1.6.0   Back to index