diff options
author | Benjamin Otte <otte@redhat.com> | 2010-05-30 20:12:31 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-06-07 13:37:48 +0200 |
commit | 1c15510c3d00553aba9ec4fd4e6764da3cdb0a41 (patch) | |
tree | 78344be722033625b6254cd4ac79f16807b253f6 /src | |
parent | 467d5e7f90b9edfb62ca71e67608704424a10aca (diff) |
Call cairo_surface_flush() before setting finished
With the current code, the surface will never be flushed as the flush
function checks if the surface is finished, and if so, doesn't call the
vfunc. Ooops.
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c index e8accfc7..8a418832 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -663,8 +663,8 @@ cairo_surface_finish (cairo_surface_t *surface) if (surface->snapshot_of != NULL) _cairo_surface_detach_snapshot (surface); - surface->finished = TRUE; cairo_surface_flush (surface); + surface->finished = TRUE; /* call finish even if in error mode */ if (surface->backend->finish) { |