Corrected a crash when ctrl-clicking on an empty section in the object view.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19140 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-04-17 16:56:18 +00:00
parent 5ffb1d5e65
commit 5fa41f5b0c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-04-17 12:52 Gregory John Casamento <greg_casamento@yahoo.com>
* GormObjectEditor.m: [GormObjectEditor mouseDown:] check
that "name" is not nil before proceeding into the code to
do the drag & drop. This was causing an exception.
2004-04-17 10:58 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/3Containers/GormNSOutlineView.m: Changed some of

View file

@ -365,7 +365,7 @@ static NSMapTable *docMap = 0;
[self makeSelectionVisible: YES];
}
name = [document nameForObject: obj];
if ([name isEqualToString: @"NSFirst"] == NO)
if ([name isEqualToString: @"NSFirst"] == NO && name != nil)
{
NSPasteboard *pb;