]> granicus.if.org Git - graphviz/commitdiff
fix breakage in imageloading
authorellson <devnull@localhost>
Fri, 28 Sep 2007 17:28:08 +0000 (17:28 +0000)
committerellson <devnull@localhost>
Fri, 28 Sep 2007 17:28:08 +0000 (17:28 +0000)
lib/gvc/gvcjob.h
lib/gvc/gvrender.c

index 4251271cac365593212dc322be5c0806b9c5735f..b84eb129cb93a6652133a03145c97890f9f0fb8b 100644 (file)
@@ -91,6 +91,7 @@ extern "C" {
         gvdevice_engine_t *engine;
         int id;
         gvdevice_features_t *features;
+        char *type;
     } gvplugin_active_device_t;
 
     typedef struct gvplugin_active_render_s {
index 33253f20f53eb2956c0baafe7a98a1e387f1c76c..23400769f199508e00ca5bd01c3bc94b50bb34f9 100644 (file)
@@ -73,6 +73,7 @@ int gvrender_select(GVJ_t * job, char *str)
         job->device.engine = (gvdevice_engine_t *) (typeptr->engine);
         job->device.features = (gvdevice_features_t *) (typeptr->features);
         job->device.id = typeptr->id;
+        job->device.type = plugin->typestr;
     }
     else
        return NO_SUPPORT;  /* FIXME - should differentiate problem */
@@ -84,6 +85,7 @@ int gvrender_select(GVJ_t * job, char *str)
         typeptr = plugin->typeptr;
         job->render.engine = (gvrender_engine_t *) (typeptr->engine);
         job->render.features = (gvrender_features_t *) (typeptr->features);
+        job->render.type = plugin->typestr;
 
         if (job->device.engine)
             job->render.id = typeptr->id;