diff --git a/plugins/plot_xy/gog-xy.c b/plugins/plot_xy/gog-xy.c
index 803ac90..8e6cf6b 100644
--- a/plugins/plot_xy/gog-xy.c
+++ b/plugins/plot_xy/gog-xy.c
@@ -1386,15 +1386,15 @@ gog_xy_view_render (GogView *view, GogViewAllocation const *bbox)
 				gog_renderer_push_style (view->renderer, style);
 				for (k = 0; k < num_markers[j]; k++) {
 					gse = NULL;
-					if (overrides != NULL) {
-						while (GOG_SERIES_ELEMENT (overrides->data)->index < markers[j][k].index)
-							overrides = overrides->next;
-						if (GOG_SERIES_ELEMENT (overrides->data)->index == markers[j][k].index) {
-							gse = GOG_SERIES_ELEMENT (overrides->data);
-							overrides = overrides->next;
-							style = go_styled_object_get_style (GO_STYLED_OBJECT (gse));
-							gog_renderer_push_style (view->renderer, style);
-						}
+					while (overrides &&
+					       GOG_SERIES_ELEMENT (overrides->data)->index < markers[j][k].index)
+						overrides = overrides->next;
+					if (overrides &&
+					    GOG_SERIES_ELEMENT (overrides->data)->index == markers[j][k].index) {
+						gse = GOG_SERIES_ELEMENT (overrides->data);
+						overrides = overrides->next;
+						style = go_styled_object_get_style (GO_STYLED_OBJECT (gse));
+						gog_renderer_push_style (view->renderer, style);
 					}
 					if (is_map) {
 						go_marker_set_outline_color
