From: Dana Jansens Date: Wed, 21 May 2003 02:59:02 +0000 (+0000) Subject: allocate the border_color's gc X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e4aa5c69054bceeddbd5031ae2c265f74e3939e5;p=chaz%2Fopenbox allocate the border_color's gc --- diff --git a/render/gradient.c b/render/gradient.c index 695d8644..8b4cd9f8 100644 --- a/render/gradient.c +++ b/render/gradient.c @@ -379,9 +379,12 @@ void gradient_solid(Appearance *l, int x, int y, int w, int h) } break; case Flat: - if (sp->border) + if (sp->border) { + if (sp->border_color->gc == None) + color_allocate_gc(sp->border_color); XDrawRectangle(ob_display, l->pixmap, sp->border_color->gc, left, top, right, bottom); + } break; default: g_assert_not_reached(); /* unhandled ReliefType */