allocate the border_color's gc

This commit is contained in:
Dana Jansens 2003-05-21 02:59:02 +00:00
parent 9e33652f71
commit e4aa5c6905

View file

@ -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 */