diff --git a/ChangeLog b/ChangeLog index 9123f80de..a0d2b3b72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-12 15:16-EDT Gregory John Casamento + + * Source/GSWindowDecorationView.m: initialize offsets to prevent + negative value warnings suggested by Doug. + 2009-04-12 15:11-EDT Gregory John Casamento * Source/NSSearchFieldCell.m: Correct issue displaying images for diff --git a/Source/GSWindowDecorationView.m b/Source/GSWindowDecorationView.m index ba40b5b7e..f41916594 100644 --- a/Source/GSWindowDecorationView.m +++ b/Source/GSWindowDecorationView.m @@ -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;