Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

SPObject const * SPObject::nearestCommonAncestor ( SPObject const *  object ) const [inherited]

Returns youngest object being parent to this and object.

Definition at line 431 of file sp-object.cpp.

References Inkscape::Algorithms::longest_common_suffix().

Referenced by sp_object_compare_position().

    g_return_val_if_fail(object != NULL, NULL);

    using Inkscape::Algorithms::longest_common_suffix;
    return longest_common_suffix<SPObject::ConstParentIterator>(this, object, NULL, &same_objects);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index