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

static void sp_curve_ensure_space ( SPCurve curve,
gint  space 
) [static]

Add space for more paths in curve.

Definition at line 168 of file curve.cpp.

References SPCurve::_bpath, SPCurve::end, and SPCurve::length.

Referenced by sp_curve_curveto(), sp_curve_lineto(), and sp_curve_lineto_moving().

    g_return_if_fail(curve != NULL);
    g_return_if_fail(space > 0);

    if (curve->end + space < curve->length)

    if (space < SP_CURVE_LENSTEP)
        space = SP_CURVE_LENSTEP;

    curve->_bpath = g_renew(NArtBpath, curve->_bpath, curve->length + space);

    curve->length += space;

Generated by  Doxygen 1.6.0   Back to index