We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 134c973 commit 7093c75Copy full SHA for 7093c75
src/astroGraphics/ephemeris.c
@@ -329,6 +329,14 @@ maximum_star_label_count=%d # %s\n\
329
void ephemerides_autoscale_plot(chart_config *s, const int total_ephemeris_points) {
330
int i, j, k;
331
332
+ // If we have no ephemerides, do not attempt autoscaling
333
+ if (s->ephemeris_final_count < 1) {
334
+ if (s->ephemeris_autoscale) {
335
+ stch_error("Plot autoscaling failure: there are no ephemerides to autoscale to.");
336
+ }
337
+ return;
338
339
+
340
// Track the sky coverage of each ephemeris in RA and Dec
341
// Create a coarse grid of RA and Declination where we set Boolean flags for whether the solar system object passes
342
// through each cell.
0 commit comments