FACTOR: Added "Scree Plots"
[pspp-builds.git] / src / output / cairo.c
index b8fc486e89e66e1fe218e9543e31eb43b4afe3d9..162009c421407d6c706c839789edcfed2503a34c 100644 (file)
@@ -21,7 +21,6 @@
 #include <libpspp/assertion.h>
 #include <libpspp/start-date.h>
 #include <libpspp/version.h>
-#include <output/afm.h>
 #include <output/chart-provider.h>
 #include <output/manager.h>
 #include <output/output.h>
@@ -389,8 +388,8 @@ handle_option (void *options_, const char *key, const struct string *val)
     {
     case -1:
       error (0, 0,
-             _("unknown configuration parameter `%s' for Cairo device "
-               "driver"), key);
+             _("unknown configuration parameter `%s' for %s device "
+               "driver"), key, this->class->name);
       break;
     case output_file_arg:
       free (options->file_name);
@@ -518,7 +517,7 @@ xr_output_chart (struct outp_driver *this, const struct chart *chart)
   chart_geometry_init (x->cairo, &geom,
                        xr_to_pt (this->width), xr_to_pt (this->length));
   chart_draw (chart, x->cairo, &geom);
-  chart_geometry_free (x->cairo);
+  chart_geometry_free (x->cairo, &geom);
   cairo_restore (x->cairo);
 
   outp_close_page (this);