case: Introduce new functions for numbers and substrings in cases.
[pspp] / src / output / charts / scatterplot-cairo.c
index 17307497c783f7b2c4d5bea00634170d955f05b9..f03d33bc169101174934598f1c56833b3c458a58 100644 (file)
@@ -101,8 +101,8 @@ xrchart_draw_scatterplot (const struct chart *chart, cairo_t *cr,
                             colour->blue / 255.0);
 
       xrchart_datum (cr, geom, 0,
-                    case_data_idx (c, SP_IDX_X)->f,
-                    case_data_idx (c, SP_IDX_Y)->f);
+                    case_num_idx (c, SP_IDX_X),
+                    case_num_idx (c, SP_IDX_Y));
     }
   casereader_destroy (data);
   cairo_restore (cr);