From f0b554213b87f913b3ccc62eae316c78f72fc6b4 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 4 Nov 2013 05:59:18 -0800 Subject: [PATCH] assert rect isn't too small to inset --- xwords4/linux/gtkdraw.c | 1 + 1 file changed, 1 insertion(+) 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 */