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

Geom::Curve const * SPCurve::last_segment (  ) const

Return last pathsegment (possibly the closing path segment) of the last path in PathVector or NULL. If the last path is empty (contains only a moveto), the function returns NULL

Definition at line 340 of file curve.cpp.

References is_empty().

Referenced by fit_and_split().

{
    if (is_empty()) {
        return NULL;
    }
    if (_pathv.back().empty()) {
        return NULL;
    }

    return &_pathv.back().back_default();
}

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