- 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;