assert rect isn't too small to inset

This commit is contained in:
Eric House 2013-11-04 05:59:18 -08:00
parent e01af60dab
commit f0b554213b

View file

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