Committing alex's change to NSOutlineView

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13545 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2002-04-26 04:30:04 +00:00
parent f139e85fd8
commit 626e18c7c1
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Fri Apr 26 12:45:07 2002 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSOutlineView.m: Added a patch by
Alex Malmberg <alexander@malmberg.org> to correct behavior of
the NSOutlineView when the outline column is not in the
leftmost position.
Wed Apr 24 10:54:47 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Model/GMAppKit.m ([NSMenuItem -initWithModelUnarchiver:]): Do not

View file

@ -119,7 +119,7 @@ static NSImage *unexpandable = nil;
[super initWithFrame: frame];
// Initial values
_indentationMarkerFollowsCell = NO;
_indentationMarkerFollowsCell = YES;
_autoResizesOutlineColumn = NO;
_autosaveExpandedItems = NO;
_indentationPerLevel = 0.0;
@ -867,7 +867,9 @@ static NSImage *unexpandable = nil;
{
position = _indentationPerLevel * level;
}
position += _columnOrigins[_clickedColumn];
if(location.x >= position && location.x <= position + [image size].width)
{
if(![self isItemExpanded: [self itemAtRow: _clickedRow]])