Logo Search packages:      
Sourcecode: inkscape version File versions

static void spdc_finish_endpoint ( SPPencilContext *const   pc  )  [static]

Finalize addline.

Todo:
fixme: I'd like remove red reset from concat colors (lauris). Still not sure, how it will make most sense.

Definition at line 568 of file pencil-context.cpp.

References sp_curve_reset().

Referenced by pencil_handle_button_release().

{
    if ( ( SP_CURVE_LENGTH(pc->red_curve) != 2 )
         || ( SP_CURVE_SEGMENT(pc->red_curve, 0)->c(3) ==
              SP_CURVE_SEGMENT(pc->red_curve, 1)->c(3)   ) )
    {
        sp_curve_reset(pc->red_curve);
        sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(pc->red_bpath), NULL);
    } else {
        /* Write curves to object. */
        spdc_concat_colors_and_flush(pc, FALSE);
        pc->sa = NULL;
        pc->ea = NULL;
    }
}


Generated by  Doxygen 1.6.0   Back to index