From: Andy Spencer Date: Sun, 13 Feb 2011 08:10:31 +0000 (+0000) Subject: Use default colormap missing the correct one X-Git-Tag: v0.5~22 X-Git-Url: http://pileus.org/git/?p=aweather;a=commitdiff_plain;h=14e0ca8fab7466f1673a7d5dcccca5887d30fdcc Use default colormap missing the correct one --- diff --git a/src/plugins/level2.c b/src/plugins/level2.c index fb39b8b..00e640b 100644 --- a/src/plugins/level2.c +++ b/src/plugins/level2.c @@ -221,7 +221,10 @@ void aweather_level2_set_sweep(AWeatherLevel2 *self, for (int i = 0; self->colormap[i].name; i++) if (self->colormap[i].type == type) self->sweep_colors = &self->colormap[i]; - if (!self->sweep_colors) return; + if (!self->sweep_colors) { + g_warning("AWeatherLevel2: set_sweep - missing colormap[%d]", type); + self->sweep_colors = &self->colormap[0]; + } /* Load data */ g_object_ref(self);