]> granicus.if.org Git - graphviz/commitdiff
fix breakage to -Txlib
authorellson <devnull@localhost>
Mon, 5 Nov 2007 19:11:53 +0000 (19:11 +0000)
committerellson <devnull@localhost>
Mon, 5 Nov 2007 19:11:53 +0000 (19:11 +0000)
plugin/xlib/gvdevice_xlib.c

index cfdce63f15bfe6c213b8909072481c3e290450ed..0126295ffea465dcaf30863b3c5dff689fcbbc9a 100644 (file)
@@ -270,8 +270,9 @@ static void update_display(GVJ_t *job, Display *dpy)
                        window->pix, window->visual,
                        job->width, job->height);
        job->context = (void *)cairo_create(surface);
-       cairo_surface_destroy(surface);
+       job->external_context = TRUE;
         (job->callbacks->refresh)(job);
+       cairo_surface_destroy(surface);
        XCopyArea(dpy, window->pix, window->win, window->gc,
                        0, 0, job->width, job->height, 0, 0);
         job->needs_refresh = 0;