diff --git a/test/contour.c b/test/contour.c index 0b1a80238..18bb01e7e 100644 --- a/test/contour.c +++ b/test/contour.c @@ -40,11 +40,12 @@ int main() { mag_add_warning_listener(&data, myprint_warning); mag_add_error_listener(&data, myprint_error); mag_open(); - const char* formats[NUM_FORMATS]; + const char* formats[3]; formats[0] = "ps"; formats[1] = "png"; formats[2] = "pdf"; + mag_set1c("output_formats", formats, NUM_FORMATS); @@ -63,7 +64,7 @@ int main() { mag_setc("contour", "on"); mag_setc("contour_line_colour", "sky"); mag_setc("CONTOUR_HIGHLIGHT_COLOUR", "GREEN"); - mag_setc("dontour_label", "on"); + mag_setc("contour_label", "on"); mag_cont();