Logo Search packages:      
Sourcecode: inkscape version File versions

static unsigned sp_bpath_length ( NArtBpath const   bpath[]  )  [static]

Returns index of first NR_END bpath in array.

Definition at line 1022 of file curve.cpp.

References NR_END.

Referenced by sp_bpath_clean(), and sp_curve_new_from_foreign_bpath().

{
    g_return_val_if_fail(bpath != NULL, FALSE);

    unsigned ret = 0;
    while ( bpath[ret].code != NR_END ) {
        ++ret;
    }
    ++ret;

    return ret;
}


Generated by  Doxygen 1.6.0   Back to index