diff --git a/xwords4/linux/gtkdraw.c b/xwords4/linux/gtkdraw.c index 2d1942b49..d83930fa8 100644 --- a/xwords4/linux/gtkdraw.c +++ b/xwords4/linux/gtkdraw.c @@ -56,6 +56,7 @@ gtkInsetRect( XP_Rect* r, short i ) r->left += i; i *= 2; + XP_ASSERT( r->height >= i && r->width >= i ); r->width -= i; r->height -= i; } /* gtkInsetRect */