- xrchart_write_xscale (cr, geom, spc->x_min, spc->x_max);
- xrchart_write_yscale (cr, geom, spc->y_min, spc->y_max);
+ if (! xrchart_write_xscale (cr, geom, spc->x_min, spc->x_max))
+ return;
+ if (! xrchart_write_yscale (cr, geom, spc->y_min, spc->y_max))
+ return;