mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
e1ae97f125
commit
d8d8156943
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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"];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue