Don't draw plastic boxes that are 0x0 pixels in size or smaller

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2005-11-07 08:44:54 +00:00
parent 0a41e770c3
commit ba4b17c545

View File

@ -301,6 +301,7 @@ static void up_box(int x, int y, int w, int h, Fl_Color c) {
static void narrow_thin_box(int x, int y, int w, int h, Fl_Color c) {
if (h<=0 || w<=0) return;
uchar *g = fl_gray_ramp();
fl_color(shade_color(g['R'], c));
fl_rectf(x+1, y+1, w-2, h-2);