summaryrefslogtreecommitdiff
path: root/src/fl_plastic.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fl_plastic.cxx')
-rw-r--r--src/fl_plastic.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx
index c3f5f1d34..72bac9b66 100644
--- a/src/fl_plastic.cxx
+++ b/src/fl_plastic.cxx
@@ -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);