Logo Search packages:      
Sourcecode: inkscape version File versions

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

Returns youngest object being parent to this and object.

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

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);

Generated by  Doxygen 1.6.0   Back to index