cairo-fsm: Honor displaying footnote markers as subscripts.
[pspp] / src / output / charts / roc-chart-cairo.c
index 2ac494e3cd16f9549be3ca49de1699002e8a8f47..ae2db62efbd6f7acd4482be82323d70bc093e154 100644 (file)
@@ -37,10 +37,12 @@ xrchart_draw_roc (const struct chart_item *chart_item, cairo_t *cr,
   xrchart_write_xlabel (cr, geom, _("1 - Specificity"));
   xrchart_write_ylabel (cr, geom, _("Sensitivity"));
 
-  xrchart_write_xscale (cr, geom, 0, 1);
-  xrchart_write_yscale (cr, geom, 0, 1);
+  if (! xrchart_write_xscale (cr, geom, 0, 1))
+    return;
+  if (! xrchart_write_yscale (cr, geom, 0, 1))
+    return;
 
-  if ( rc->reference )
+  if (rc->reference)
     {
       xrchart_line (cr, geom, 1.0, 0,
                     0.0, 1.0,