mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
assert rect isn't too small to inset
This commit is contained in:
parent
e01af60dab
commit
f0b554213b
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue