output: Make chart geometry the responsibility of the output driver.
[pspp-builds.git] / src / output / html.c
index 8c1a653017273921fde64e07b685178a7f4f6bbd..d943f192aa3a63c93800599fc1099f71da05979c 100644 (file)
@@ -208,6 +208,7 @@ static void
 html_output_chart (struct outp_driver *this, const struct chart *chart)
 {
   struct html_driver_ext *x = this->ext;
+  struct chart_geometry geom;
   char *file_name;
   plPlotter *lp;
 
@@ -216,7 +217,9 @@ html_output_chart (struct outp_driver *this, const struct chart *chart)
                           NULL, &file_name, &lp))
     return;
   x->chart_cnt++;
-  chart_draw (chart, lp);
+  chart_geometry_init (lp, &geom, 1000.0, 1000.0);
+  chart_draw (chart, lp, &geom);
+  chart_geometry_free (lp);
   pl_deletepl_r (lp);
 
   link_image (x->file, file_name);