- xrchart_write_xscale (cr, geom, spc->x_min, spc->x_max);
- xrchart_write_yscale (cr, geom, spc->y_min, spc->y_max);
- xrchart_write_title (cr, geom, _("Scatterplot %s"), chart_item->title);
+ 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;
+ xrchart_write_title (cr, geom, _("Scatterplot %s"), chart->title);