- xrchart_write_yscale (cr, geom, boxplot->y_min, boxplot->y_max);
- xrchart_write_title (cr, geom, "%s", chart_item->title);
+ if (! xrchart_write_yscale (cr, geom, boxplot->y_min, boxplot->y_max))
+ return;
+
+ xrchart_write_title (cr, geom, "%s", chart->title);