[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-devel] Recent font problem

From: walt
Subject: Re: [Pan-devel] Recent font problem
Date: Fri, 16 Dec 2011 12:50:46 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111117 Thunderbird/8.0

On 12/16/2011 12:03 PM, Heinrich Mueller wrote:
Am 16.12.2011 19:24, schrieb walt:

So I deleted the assertion from cairo's code, and now pan works perfectly.

Can you point me to the line number in the file?

You mean cairo's code, right?

This machine is running cairo-1.10.2, and here is the troublesome code in
cairo-surface.c.  The assertion is line 1287:

cairo_surface_set_device_offset (cairo_surface_t *surface,
                                 double           x_offset,
                                 double           y_offset)
    cairo_status_t status;

    if (surface->status)

    assert (surface->snapshot_of == NULL);

    if (surface->finished) {
        status = _cairo_surface_set_error (surface, _cairo_error 

    _cairo_surface_begin_modification (surface);

    surface->device_transform.x0 = x_offset;
    surface->device_transform.y0 = y_offset;

    surface->device_transform_inverse = surface->device_transform;
    status = cairo_matrix_invert (&surface->device_transform_inverse);
    /* should always be invertible unless given pathological input */
    assert (status == CAIRO_STATUS_SUCCESS);

    _cairo_observers_notify (&surface->device_transform_observers, surface);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]