text-item: Simplify text_item further to just hold a pivot_value.
[pspp] / src / output / charts / spreadlevel-cairo.c
index 389a487b01599953c04e1842e4fe03047ca46eac..7167c4c8e6cf57e8dd74f14a5d82b52910318354 100644 (file)
@@ -39,8 +39,11 @@ xrchart_draw_spreadlevel (const struct chart_item *chart_item, cairo_t *cr,
   xrchart_write_ylabel (cr, geom, _("Spread"));
 
 
-  xrchart_write_xscale (cr, geom, sl->x_lower, sl->x_upper);
-  xrchart_write_yscale (cr, geom, sl->y_lower, sl->y_upper);
+  if (! xrchart_write_xscale (cr, geom, sl->x_lower, sl->x_upper))
+    return;
+
+  if (! xrchart_write_yscale (cr, geom, sl->y_lower, sl->y_upper))
+    return;
 
   for (i = 0 ; i < sl->n_data; ++i)
     {