Update Dutch and Brazilian Portuguese translations.
[pspp-builds.git] / src / language / stats / examine.q
index febb60fedeeb5d5146253c5b3c434bece64ff79e..592bb56b13fa18d02279a6c50082f448e51849d5 100644 (file)
@@ -1797,10 +1797,13 @@ box_plot_variables (const struct factor *fctr,
       double y_min = DBL_MAX;
       double y_max = -DBL_MAX;
       struct chart *ch = chart_create ();
+      if (ch == NULL)
+        break;
+
       ds_init_empty (&str);
       factor_to_string (fctr, *fs, 0, &str );
 
-      chart_write_title (ch, ds_cstr (&str));
+      chart_write_title (ch, "%s", ds_cstr (&str));
 
       for ( i = 0 ; i < n_vars ; ++i )
        {
@@ -1852,6 +1855,8 @@ box_plot_group (const struct factor *fctr,
       struct chart *ch;
 
       ch = chart_create ();
+      if (ch == NULL)
+        break;
 
       boxplot_draw_yscale (ch, totals[i].max, totals[i].min);