projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix missing buttonbox in frequencies dialog
[pspp]
/
src
/
output
/
charts
/
scatterplot-cairo.c
diff --git
a/src/output/charts/scatterplot-cairo.c
b/src/output/charts/scatterplot-cairo.c
index 736d5e2ae7102c210f4022bf89ef6a37c77fd9aa..211d2d60dcdf8b2fca15713f0da53ad952f9c1ae 100644
(file)
--- a/
src/output/charts/scatterplot-cairo.c
+++ b/
src/output/charts/scatterplot-cairo.c
@@
-28,6
+28,7
@@
#include "gettext.h"
#define _(msgid) gettext (msgid)
#include "gettext.h"
#define _(msgid) gettext (msgid)
+static const struct xrchart_colour black = {0,0,0};
void
xrchart_draw_scatterplot (const struct chart_item *chart_item, cairo_t *cr,
void
xrchart_draw_scatterplot (const struct chart_item *chart_item, cairo_t *cr,
@@
-87,8
+88,11
@@
xrchart_draw_scatterplot (const struct chart_item *chart_item, cairo_t *cr,
i--;
}
}
i--;
}
}
+ colour = &data_colour[i % XRCHART_N_COLOURS];
}
}
- colour = &data_colour[i % XRCHART_N_COLOURS];
+ else
+ colour = &black;
+
cairo_set_source_rgb (cr,
colour->red / 255.0,
colour->green / 255.0,
cairo_set_source_rgb (cr,
colour->red / 255.0,
colour->green / 255.0,