Fix inconsitency in NSScrollView decoding that led to uninitialized

memory being used.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28103 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-03-20 08:58:07 +00:00
parent e1ae97f125
commit d8d8156943
2 changed files with 2 additions and 2 deletions

View file

@ -2,6 +2,7 @@
* Source/NSOutlineView.m (-drawRow:clipRect:): Changed order of
expresions in condition to avoid possible access to uninitialized memory.
* Source/NSScrollView.m (-initWithCoder:): Don't set _hasCornerView.
2009-03-18 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1107,7 +1107,7 @@ static float scrollerWidth;
/* Now place the corner view. */
if (_hasCornerView)
{
NSPoint p = headerRect.origin;
NSPoint p = headerRect.origin;
if (verticalScrollerEdge == NSMaxXEdge)
{
@ -1593,7 +1593,6 @@ static float scrollerWidth;
if ([aDecoder containsValueForKey: @"NSHeaderClipView"])
{
_hasHeaderView = YES;
_hasCornerView = YES;
_headerClipView = [aDecoder decodeObjectForKey: @"NSHeaderClipView"];
}