Logo Search packages:      
Sourcecode: inkscape version File versions

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

Todo:
fixme: this is bogus -- it doesn't check for nr_moveto, which will indicate a closing of the subpath it's nonsense to talk about a path as a whole being closed, although maybe someone would want that for some other reason? Oh, also, if the bpath just ends, then it's *open*. I hope nobody is using this code for anything.

Definition at line 1045 of file curve.cpp.

References NArtBpath::code, NR_END, and NR_MOVETO_OPEN.

Referenced by sp_curve_new_from_foreign_bpath().

{
    g_return_val_if_fail(bpath != NULL, FALSE);

    for (NArtBpath const *bp = bpath; bp->code != NR_END; bp++) {
        if (bp->code == NR_MOVETO_OPEN) {
            return false;
        }
    }

    return true;
}


Generated by  Doxygen 1.6.0   Back to index