* Source/GSWindowDecorationView.m: initialize offsets to prevent

negative value warnings suggested by Doug.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28206 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-04-12 23:17:49 +00:00
parent b9a8ff0a46
commit 6cc478a8ed
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-04-12 15:16-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSWindowDecorationView.m: initialize offsets to prevent
negative value warnings suggested by Doug.
2009-04-12 15:11-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSSearchFieldCell.m: Correct issue displaying images for

View file

@ -65,7 +65,7 @@
+ (NSRect) contentRectForFrameRect: (NSRect)aRect
styleMask: (unsigned int)aStyle
{
float t, b, l, r;
float t = 0.0, b = 0.0, l = 0.0, r = 0.0;
[self offsets: &l : &r : &t : &b forStyleMask: aStyle];
aRect.size.width -= l + r;
@ -78,7 +78,7 @@
+ (NSRect) frameRectForContentRect: (NSRect)aRect
styleMask: (unsigned int)aStyle
{
float t, b, l, r;
float t = 0.0, b = 0.0, l = 0.0, r = 0.0;
[self offsets: &l : &r : &t : &b forStyleMask: aStyle];
aRect.size.width += l + r;