diff --git a/src/psxy.c b/src/psxy.c index 7c97b06be7f..de9a2e513bc 100644 --- a/src/psxy.c +++ b/src/psxy.c @@ -1509,7 +1509,7 @@ EXTERN_MSC int GMT_psxy (void *V_API, int mode, void *args) { geovector = (S.symbol == GMT_SYMBOL_GEOVECTOR); if ((S.v.status & PSL_VEC_FILL) == 0 && !S.v.parsed_v4) Ctrl->G.active = false; /* Want no fill so override -G */ if (S.v.status & PSL_VEC_FILL2) { /* Gave +g to set head fill; odd, but overrides -G (and sets -G true) */ - current_fill = S.v.fill; /* Override any -G with specified head fill */ + current_fill = Ctrl->G.fill = S.v.fill; /* Override any -G with specified head fill, and let auto-legend see it too */ if (S.v.status & PSL_VEC_FILL) Ctrl->G.active = true; } else if (S.v.status & PSL_VEC_FILL) { diff --git a/src/psxyz.c b/src/psxyz.c index 98f61c79110..f791aadf197 100644 --- a/src/psxyz.c +++ b/src/psxyz.c @@ -1047,7 +1047,7 @@ EXTERN_MSC int GMT_psxyz (void *V_API, int mode, void *args) { if (S.symbol == PSL_VECTOR || S.symbol == GMT_SYMBOL_GEOVECTOR || S.symbol == PSL_MARC ) { /* One of the vector symbols */ geovector = (S.symbol == GMT_SYMBOL_GEOVECTOR); if (S.v.status & PSL_VEC_FILL2) { /* Gave +g to set head fill; odd, but overrides -G (and sets -G true) */ - current_fill = S.v.fill; /* Override any -G with specified head fill */ + current_fill = Ctrl->G.fill = S.v.fill; /* Override any -G with specified head fill, and let auto-legend see it too */ if (S.v.status & PSL_VEC_FILL) Ctrl->G.active = true; } else if (S.v.status & PSL_VEC_FILL) {