]> granicus.if.org Git - graphviz/commitdiff
back out previous re-ordering of end-job and finalize
authorellson <devnull@localhost>
Tue, 26 Jan 2010 15:57:58 +0000 (15:57 +0000)
committerellson <devnull@localhost>
Tue, 26 Jan 2010 15:57:58 +0000 (15:57 +0000)
lib/gvc/gvrender.c

index ccab28b521a8f771ab3a29f8a727b5279dbf3825..f6de70c5ab28607d98c7ea62c96f8319fe3ba46d 100644 (file)
@@ -118,23 +118,23 @@ void gvrender_begin_job(GVJ_t * job)
 {
     gvrender_engine_t *gvre = job->render.engine;
 
+    gvdevice_initialize(job);
     if (gvre) {
         if (gvre->begin_job)
            gvre->begin_job(job);
     }
-    gvdevice_initialize(job);
 }
 
 void gvrender_end_job(GVJ_t * job)
 {
     gvrender_engine_t *gvre = job->render.engine;
 
-    gvdevice_finalize(job);
     if (gvre) {
                if (gvre->end_job)
            gvre->end_job(job);
     }
     job->gvc->common.lib = NULL;    /* FIXME - minimally this doesn't belong here */
+    gvdevice_finalize(job);
 }
 
 /* font modifiers */