mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
fix #25369
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27646 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b4ece5bc82
commit
1803fa7fc5
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-01-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSOutlineView.m: Don't ask if the topmost item is expandable.
|
||||
On MacOS-X the delegate is not asked ... we just assume that it is.
|
||||
Fix for bug #25369
|
||||
|
||||
2009-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSImage.m (-compositeToPoint:fromRect:operation:,
|
||||
|
|
|
@ -1716,9 +1716,12 @@ static NSImage *unexpandable = nil;
|
|||
id sitem = (startitem == nil) ? (id)[NSNull null] : (id)startitem;
|
||||
NSMutableArray *anarray = nil;
|
||||
|
||||
// Check to see if item is expandable before getting the number of
|
||||
// items.
|
||||
if([_dataSource outlineView: self isItemExpandable: startitem])
|
||||
/* Check to see if item is expandable before getting the number of
|
||||
* items. For macos compatibility the topmost item (startitem==nil)
|
||||
* is always considered expandable and must not be checked.
|
||||
*/
|
||||
if (startitem == nil
|
||||
|| [_dataSource outlineView: self isItemExpandable: startitem])
|
||||
{
|
||||
num = [_dataSource outlineView: self
|
||||
numberOfChildrenOfItem: startitem];
|
||||
|
|
Loading…
Reference in a new issue