Logo Search packages:      
Sourcecode: inkscape version File versions

static bool sp_bpath_good ( NArtBpath const   bpath[]  )  [static]

True if all subpaths in bpath array pass consistency check.

Definition at line 940 of file curve.cpp.

References NArtBpath::code, NR_END, and sp_bpath_check_subpath().

Referenced by sp_curve_new_from_foreign_bpath().

{
    g_return_val_if_fail(bpath != NULL, FALSE);

    NArtBpath const *bp = bpath;
    while (bp->code != NR_END) {
        bp = sp_bpath_check_subpath(bp);
        if (bp == NULL)
            return false;
    }

    return true;
}


Generated by  Doxygen 1.6.0   Back to index