[cairo] Re: On recovery from errors in cairo (was: cairo reset)

Behdad Esfahbod behdad at behdad.org
Fri Sep 22 11:27:22 PDT 2006

On Fri, 2006-09-22 at 14:12 -0400, Mike Emmel wrote:
> Well so far its always been the current path problem.
> I have a patch for cairo_get_current_point that allows the user to
> guard agianst it. 

I'm not sure what problem you are referring to here.  The only time
cairo goes into CAIRO_STATUS_NO_CURRENT_POINT state is if you do
a /relative/ path operation.  ie. cairo_rel_move_to(),
cairo_rel_line_to(), or cairo_rel_curve_to().  That's all.

A cairo_line_to() without a current point acts like a cairo_move_to().
And cairo_get_current_point() returns (0,0) if no point is set.  It may
have been more useful if this also returned
CAIRO_STATUS_NO_CURRENT_POINT instead of void, but that's not possible
at this time.


"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"

More information about the cairo mailing list